Commit cec2bbfb authored by Julien Muchembled's avatar Julien Muchembled

Deduplicate CloudPerformanceUnitTestDistributor.generateConfiguration

parent ae32326a
...@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment