Clear the result after unstage when running from Web UI

Change-Id: Ic90e673f6eeaee1b3da7e54e629110ed3a3f2305
This commit is contained in:
Yichen Wang 2016-03-10 17:27:09 -08:00
parent 73511dbf51
commit b5e2f349bd
2 changed files with 3 additions and 2 deletions

View File

@ -82,6 +82,7 @@ class KBController(object):
kloudbuster = kb_session.kloudbuster
try:
kloudbuster.cleanup()
kloudbuster.final_result = []
except Exception:
pass

View File

@ -507,11 +507,11 @@ class KloudBuster(object):
# Function that print all the provisioning info
self.print_provision_info()
def run_test(self, http_test_only=False):
def run_test(self, test_only=False):
self.final_result = []
self.kb_runner.config = self.client_cfg
# Run the runner to perform benchmarkings
for run_result in self.kb_runner.run(http_test_only):
for run_result in self.kb_runner.run(test_only):
self.final_result.append(self.kb_runner.tool_result)
LOG.info('SUMMARY: %s' % self.final_result)