Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
2c627797
Commit
2c627797
authored
Sep 06, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskdistribution: add computer_guid parameter
parent
3367c4fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+2
-2
erp5/util/testnode/testnode.py
erp5/util/testnode/testnode.py
+1
-1
No files found.
erp5/util/taskdistribution/__init__.py
View file @
2c627797
...
...
@@ -487,12 +487,12 @@ class TaskDistributor(RPCRetry):
raise
ValueError
(
'Unsupported protocol revision: %r'
,
protocol_revision
)
def
startTestSuite
(
self
,
node_title
):
def
startTestSuite
(
self
,
node_title
,
computer_guid
=
'unknown'
):
"""
Returns None if no test suite is needed.
therwise, returns a JSON with all the test suite parameters.
"""
result
=
self
.
_retryRPC
(
'startTestSuite'
,(
node_title
,))
result
=
self
.
_retryRPC
(
'startTestSuite'
,(
node_title
,
computer_guid
,
))
return
result
def
getTestType
(
self
):
...
...
erp5/util/testnode/testnode.py
View file @
2c627797
...
...
@@ -331,7 +331,7 @@ branch = %(branch)s
self
.
portal
=
portal
self
.
test_suite_portal
=
taskdistribution
.
TaskDistributor
(
portal_url
,
logger
=
DummyLogger
(
log
))
self
.
test_suite_portal
.
subscribeNode
(
config
[
'test_node_title'
],
config
[
'computer_id'
])
test_suite_json
=
self
.
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
])
test_suite_json
=
self
.
test_suite_portal
.
startTestSuite
(
config
[
'test_node_title'
]
,
config
[
'computer_id'
]
)
test_suite_data
=
Utils
.
deunicodeData
(
json
.
loads
(
test_suite_json
))
log
(
"Got following test suite data from master : %r"
%
\
(
test_suite_data
,))
...
...
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