diff options
Diffstat (limited to 'functest/core')
-rw-r--r-- | functest/core/singlevm.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py index 61c74fd60..23f453722 100644 --- a/functest/core/singlevm.py +++ b/functest/core/singlevm.py @@ -168,13 +168,15 @@ class VmReady1(tenantnetwork.TenantNetwork1): status = testcase.TestCase.EX_RUN_ERROR try: assert self.cloud - super(VmReady1, self).run(**kwargs) + assert super(VmReady1, self).run( + **kwargs) == testcase.TestCase.EX_OK self.image = self.publish_image() self.flavor = self.create_flavor() self.result = 100 status = testcase.TestCase.EX_OK except Exception: # pylint: disable=broad-except self.__logger.exception('Cannot run %s', self.case_name) + self.result = 0 finally: self.stop_time = time.time() return status @@ -346,7 +348,8 @@ class SingleVm1(VmReady1): status = testcase.TestCase.EX_RUN_ERROR try: assert self.cloud - super(SingleVm1, self).run(**kwargs) + assert super(SingleVm1, self).run( + **kwargs) == testcase.TestCase.EX_OK self.result = 0 self.prepare() self.sshvm = self.boot_vm( |