Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
37bd2c21
Commit
37bd2c21
authored
Aug 29, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: restore revision usage in software.cfg
parent
0ec8eaf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+2
-2
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+2
-2
No files found.
erp5/tests/testERP5TestNode.py
View file @
37bd2c21
...
@@ -244,12 +244,12 @@ extends = %(temp_dir)s/testnode/foo/rep0/software.cfg
...
@@ -244,12 +244,12 @@ extends = %(temp_dir)s/testnode/foo/rep0/software.cfg
[rep1]
[rep1]
repository = <obfuscated_url>/rep1/rep1.git
repository = <obfuscated_url>/rep1/rep1.git
branch = master
revision = %(revision1)s
ignore-ssl-certificate = true
ignore-ssl-certificate = true
[rep2]
[rep2]
repository = <obfuscated_url>/rep2/rep2.git
repository = <obfuscated_url>/rep2/rep2.git
branch = foo
revision = %(revision2)s
ignore-ssl-certificate = true
ignore-ssl-certificate = true
"""
%
{
'temp_dir'
:
self
.
_temp_dir
,
'revision1'
:
revision1
,
'revision2'
:
revision2
}
"""
%
{
'temp_dir'
:
self
.
_temp_dir
,
'revision1'
:
revision1
,
'revision2'
:
revision2
}
self
.
assertEquals
(
expected_profile
,
profile
.
read
())
self
.
assertEquals
(
expected_profile
,
profile
.
read
())
...
...
erp5/util/testnode/testnode.py
View file @
37bd2c21
...
@@ -167,10 +167,10 @@ extends = %(software_config_path)s
...
@@ -167,10 +167,10 @@ extends = %(software_config_path)s
profile_content_list
.
append
(
"""
profile_content_list
.
append
(
"""
[%(buildout_section_id)s]
[%(buildout_section_id)s]
repository = <obfuscated_url>/%(buildout_section_id)s/%(buildout_section_id)s.git
repository = <obfuscated_url>/%(buildout_section_id)s/%(buildout_section_id)s.git
branch = %(branch
)s
revision = %(revision
)s
ignore-ssl-certificate = true
ignore-ssl-certificate = true
"""
%
{
'buildout_section_id'
:
buildout_section_id
,
"""
%
{
'buildout_section_id'
:
buildout_section_id
,
'
branch'
:
vcs_repository
.
get
(
'branch'
,
'master'
)
})
'
revision'
:
revision_dict
[
buildout_section_id
]
})
else
:
else
:
profile_content_list
.
append
(
"""
profile_content_list
.
append
(
"""
[%(buildout_section_id)s]
[%(buildout_section_id)s]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment