Commit 647f991e authored by Benjamin Blanc's avatar Benjamin Blanc

testnode: scalability: Fix non initialized variable

parent 70dd84b9
...@@ -309,6 +309,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) ...@@ -309,6 +309,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
if not self.launchable: if not self.launchable:
self.log("Current test_suite is not actually launchable.") self.log("Current test_suite is not actually launchable.")
return {'status_code' : 1} # Unable to continue due to not realizable configuration return {'status_code' : 1} # Unable to continue due to not realizable configuration
configuration_list = node_test_suite.configuration_list
test_list = range(0, len(configuration_list)) test_list = range(0, len(configuration_list))
# create test_result # create test_result
test_result_proxy = self.testnode.portal.createTestResult( test_result_proxy = self.testnode.portal.createTestResult(
...@@ -323,15 +324,15 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) ...@@ -323,15 +324,15 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
self._updateInstanceXML(configuration, self.instance_title, self._updateInstanceXML(configuration, self.instance_title,
node_test_suite.test_result, node_test_suite.test_suite) node_test_suite.test_result, node_test_suite.test_suite)
self.log("Waiting for XML updating instance ready..") self.log("Waiting for XML updating instance ready..")
_waitInstance(self.instance_title) self._waitInstance(self.instance_title)
# Stop instance # Stop instance
self.slapos_controler.stopInstance(self.instance_title) self.slapos_controler.stopInstance(self.instance_title)
self.log("Waiting for instance stop..") self.log("Waiting for instance stop..")
_waitInstance(self.instance_title) self._waitInstance(self.instance_title)
# Start instance # Start instance
self.slapos_controler.startInstance(self.instance_title) self.slapos_controler.startInstance(self.instance_title)
self.log("Waiting for instance start..") self.log("Waiting for instance start..")
_waitInstance(self.instance_title) self._waitInstance(self.instance_title)
# Start only the current test # Start only the current test
exclude_list=[x for x in test_list if x!=test_list[count]] exclude_list=[x for x in test_list if x!=test_list[count]]
......
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