refstack: bugfix of name TestCase 19/34719/1
authorMatthewLi <matthew.lijun@huawei.com>
Wed, 29 Mar 2017 02:05:59 +0000 (22:05 -0400)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 13 May 2017 06:41:49 +0000 (08:41 +0200)
JIRA: FUNCTEST-758

Change-Id: I1b90597c9745faa67afa58e5653f72411a95aa3d
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
(cherry picked from commit d2b8732ef3670586e28c40f5cec4e1ff42e22d37)

functest/opnfv_tests/openstack/refstack_client/refstack_client.py
functest/opnfv_tests/openstack/refstack_client/tempest_conf.py

index 101bf73..37aa9e3 100755 (executable)
@@ -184,7 +184,7 @@ class RefstackClient(testcase.TestCase):
             self.source_venv()
             self._prep_test()
             self.run_defcore(self.confpath, self.testlist)
-            res = testcase.TestcaseBase.EX_OK
+            res = testcase.TestCase.EX_OK
         except Exception as e:
             logger.error('Error with run: %s', e)
             res = testcase.TestCase.EX_RUN_ERROR
index 66876bb..5624ed7 100755 (executable)
@@ -39,15 +39,15 @@ class TempestConf(object):
     def main(self):
         try:
             self.generate_tempestconf()
-            res = testcase.TestcaseBase.EX_OK
+            res = testcase.TestCase.EX_OK
         except Exception as e:
             logger.error('Error with run: %s', e)
-            res = testcase.TestcaseBase.EX_RUN_ERROR
+            res = testcase.TestCase.EX_RUN_ERROR
 
         return res
 
 if __name__ == '__main__':
     tempestconf = TempestConf()
     result = tempestconf.main()
-    if result != testcase.TestcaseBase.EX_OK:
+    if result != testcase.TestCase.EX_OK:
         sys.exit(result)