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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
cec2bbfb
Commit
cec2bbfb
authored
Mar 07, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deduplicate CloudPerformanceUnitTestDistributor.generateConfiguration
parent
ae32326a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
+5
-9
No files found.
product/ERP5/Document/CloudPerformanceUnitTestDistributor.py
View file @
cec2bbfb
...
...
@@ -90,12 +90,8 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
we will have only one configuration (unlike scalability tests). But for API consistency,
always return a list.
"""
test_suite
=
self
.
_getTestSuiteFromTitle
(
"ERP5-Cloud-Reliability"
)
cluster_configuration
=
test_suite
.
getClusterConfiguration
()
or
'{}'
try
:
generated_configuration
=
{
"configuration_list"
:
[
json
.
loads
(
cluster_configuration
)]}
except
ValueError
:
generated_configuration
=
{
"configuration_list"
:
[{}]}
if
batch_mode
:
return
generated_configuration
return
json
.
dumps
(
generated_configuration
)
# The test_suite_title parameter does not correspond exactly to the test
# suite title present in ERP5, as this test is not supposed to share the
# effort to run tests.
return
super
(
CloudPerformanceUnitTestDistributor
,
self
)
\
.
generateConfiguration
(
"ERP5-Cloud-Reliability"
,
batch_mode
)
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