Commit e1d1aa7b authored by Ivan Tyagov's avatar Ivan Tyagov

When multiple repositories exists and two of them contain scalability_test...

When multiple repositories exists and two of them contain scalability_test package be wiser and really check if neeeded Test Suite class exists before trying to load it.
parent 659ea62d
......@@ -452,7 +452,8 @@ Require valid-user
for location in location_list:
try:
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, None)
if suite_class is not None:
suite = suite_class(**kwargs)
if suite is not None:
repo_location = "%s/%s/" % (location, SCALABILITY_TEST)
......
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