Commit f9b08acc authored by Benjamin Blanc's avatar Benjamin Blanc

Fix typo (definitively : my_test_type)

parent 366b0144
This diff is collapsed.
...@@ -342,25 +342,25 @@ branch = %(branch)s ...@@ -342,25 +342,25 @@ branch = %(branch)s
# into nexedi/master-erp5.. # into nexedi/master-erp5..
# (just UnitTestDistributor should be sufficient) # (just UnitTestDistributor should be sufficient)
try: try:
my_type_test = test_suite_portal.getTestType() my_test_type = test_suite_portal.getTestType()
except: except:
log("testnode, error during requesting getTestType() method \ log("testnode, error during requesting getTestType() method \
from the distributor.") from the distributor.")
raise NotImplementedError raise NotImplementedError
# Select runner according to the test type # Select runner according to the test type
if my_type_test == 'UnitTest': if my_test_type == 'UnitTest':
runner = UnitTestRunner(self) runner = UnitTestRunner(self)
elif my_type_test == 'ScalabilityTest': elif my_test_type == 'ScalabilityTest':
runner = ScalabilityTestRunner(self) runner = ScalabilityTestRunner(self)
else: else:
log("testnode, Runner type not implemented.", my_type_test) log("testnode, Runner type not implemented.", my_test_type)
raise NotImplementedError raise NotImplementedError
log("Type of current test is %s" %(my_type_test,)) log("Type of current test is %s" %(my_test_type,))
# master gets test_suites, slaves get nothing # master gets test_suites, slaves get nothing
if (len(test_suite_data) > 1) or (my_type_test == 'UnitTest'): if (len(test_suite_data) > 1) or (my_test_type == 'UnitTest'):
runner.prepareSlapOSForTestNode(test_node_slapos) runner.prepareSlapOSForTestNode(test_node_slapos)
#Clean-up test suites #Clean-up test suites
self.checkOldTestSuite(test_suite_data) self.checkOldTestSuite(test_suite_data)
......
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