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
Nikola Balog
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
Hide 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):
...
@@ -90,12 +90,8 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
we will have only one configuration (unlike scalability tests). But for API consistency,
we will have only one configuration (unlike scalability tests). But for API consistency,
always return a list.
always return a list.
"""
"""
test_suite
=
self
.
_getTestSuiteFromTitle
(
"ERP5-Cloud-Reliability"
)
# The test_suite_title parameter does not correspond exactly to the test
cluster_configuration
=
test_suite
.
getClusterConfiguration
()
or
'{}'
# suite title present in ERP5, as this test is not supposed to share the
try
:
# effort to run tests.
generated_configuration
=
{
"configuration_list"
:
[
json
.
loads
(
cluster_configuration
)]}
return
super
(
CloudPerformanceUnitTestDistributor
,
self
)
\
except
ValueError
:
.
generateConfiguration
(
"ERP5-Cloud-Reliability"
,
batch_mode
)
generated_configuration
=
{
"configuration_list"
:
[{}]}
if
batch_mode
:
return
generated_configuration
return
json
.
dumps
(
generated_configuration
)
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