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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
francois
erp5
Commits
d41020e3
Commit
d41020e3
authored
Sep 11, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_test_result: Fix parameter orders in startTestSuite
parent
8ef2ab3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
bt5/erp5_test_result/DocumentTemplateItem/ERP5ScalabilityDistributor.py
...result/DocumentTemplateItem/ERP5ScalabilityDistributor.py
+10
-5
bt5/erp5_test_result/bt/revision
bt5/erp5_test_result/bt/revision
+1
-1
No files found.
bt5/erp5_test_result/DocumentTemplateItem/ERP5ScalabilityDistributor.py
View file @
d41020e3
...
...
@@ -155,11 +155,13 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
security
.
declarePublic
(
"startTestSuite"
)
def
startTestSuite
(
self
,
title
,
batch_mode
=
0
,
computer_guid
=
'unknown'
):
def
startTestSuite
(
self
,
title
,
computer_guid
=
'unknown'
,
batch_mode
=
0
):
"""
startTestSuite : subscribe node + return testsuite list to the master
"""
config_list
=
[]
super
(
ERP5ScalabilityDistributor
,
self
).
subscribeNode
(
title
=
title
,
computer_guid
=
computer_guid
,
batch_mode
=
batch_mode
)
test_node
=
self
.
getTestNode
(
title
,
batch_mode
)
test_suite_module
=
self
.
_getTestSuiteModule
()
test_node_module
=
self
.
_getTestNodeModule
()
...
...
@@ -167,11 +169,14 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
# If the testnode wich request testsuites is not the master
# he does not have to receive any testsuites
master_test_node_title
=
[
x
.
getTitle
()
for
x
in
test_node_module
.
searchFolder
(
validatation_state
=
'validated'
)
if
(
x
.
getMaster
()
==
True
)
][
0
]
master_test_node_title_list
=
[
x
.
getTitle
()
for
x
in
test_node_module
.
searchFolder
(
validatation_state
=
'validated'
)
if
(
x
.
getMaster
()
==
True
)
]
if
len
(
master_test_node_title_list
)
>
0
:
master_test_node_title
=
master_test_node_title_list
[
0
]
if
title
==
master_test_node_title
:
return
super
(
ERP5ScalabilityDistributor
,
if
title
==
master_test_node_title
:
return
super
(
ERP5ScalabilityDistributor
,
self
).
startTestSuite
(
title
=
title
,
batch_mode
=
batch_mode
,
computer_guid
=
computer_guid
)
else
:
if
batch_mode
:
...
...
bt5/erp5_test_result/bt/revision
View file @
d41020e3
275
\ No newline at end of file
276
\ No newline at end of file
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