Commit e0382e3d authored by Ivan Tyagov's avatar Ivan Tyagov

Return when first test suite class is found instead of iterating over

all repository list which will cause a mismatch between test suite class
location and repository.

/reviewed-on nexedi/erp5!945
parent c3101f1f
...@@ -454,7 +454,9 @@ Require valid-user ...@@ -454,7 +454,9 @@ Require valid-user
module = imp.load_source(SCALABILITY_TEST, "%s/%s/%s" %(location, SCALABILITY_TEST, TEST_SUITE_INIT)) module = imp.load_source(SCALABILITY_TEST, "%s/%s/%s" %(location, SCALABILITY_TEST, TEST_SUITE_INIT))
suite_class = getattr(module, test_suite) suite_class = getattr(module, test_suite)
suite = suite_class(**kwargs) suite = suite_class(**kwargs)
repo_location = "%s/%s/" % (location, SCALABILITY_TEST) if suite is not None:
repo_location = "%s/%s/" % (location, SCALABILITY_TEST)
return suite, repo_location
except Exception: except Exception:
pass pass
return suite, repo_location return suite, repo_location
......
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