aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/features
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-01 21:52:43 -0500
committerjose.lausuch <jose.lausuch@ericsson.com>2016-12-02 17:01:19 +0100
commitdc733c31177b0ffdc4c30b9c4801b765909f1c50 (patch)
tree574c2eccbece763723e72d1a23251d3495f939ea /functest/opnfv_tests/features
parent9e469ae7bb108bc38cbb9fa8e6a81e8f3ff9a1a7 (diff)
Rename TestCasesBase into TestcaseBase
JIRA: FUNCTEST-628 1. rename the TestCasesBase into TestcaseBase 2. updated the module name to testcase_base.py Change-Id: Ic6b5d8209098c136613a2419c3790668fdbd493e Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/features')
-rwxr-xr-xfunctest/opnfv_tests/features/domino.py8
-rw-r--r--functest/opnfv_tests/features/sdnvpn.py9
2 files changed, 9 insertions, 8 deletions
diff --git a/functest/opnfv_tests/features/domino.py b/functest/opnfv_tests/features/domino.py
index 4d882e15..45b93e7b 100755
--- a/functest/opnfv_tests/features/domino.py
+++ b/functest/opnfv_tests/features/domino.py
@@ -19,13 +19,13 @@ import os
import sys
import time
-from functest.core import TestCasesBase
+import functest.core.testcase_base as testcase_base
import functest.utils.functest_constants as ft_constants
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as ft_utils
-class DominoCases(TestCasesBase.TestCasesBase):
+class DominoCases(testcase_base.TestcaseBase):
DOMINO_REPO = \
ft_constants.DOMINO_REPO_DIR
RESULTS_DIR = \
@@ -72,9 +72,9 @@ if __name__ == '__main__':
domino = DominoCases()
try:
result = domino.main(**args)
- if result != TestCasesBase.TestCasesBase.EX_OK:
+ if result != testcase_base.TestcaseBase.EX_OK:
sys.exit(result)
if args['report']:
sys.exit(domino.push_to_db())
except Exception:
- sys.exit(TestCasesBase.TestCasesBase.EX_RUN_ERROR)
+ sys.exit(testcase_base.TestcaseBase.EX_RUN_ERROR)
diff --git a/functest/opnfv_tests/features/sdnvpn.py b/functest/opnfv_tests/features/sdnvpn.py
index 1c07fe14..451299eb 100644
--- a/functest/opnfv_tests/features/sdnvpn.py
+++ b/functest/opnfv_tests/features/sdnvpn.py
@@ -14,13 +14,13 @@ import os
import sys
import time
-from functest.core import TestCasesBase
+import functest.core.testcase_base as testcase_base
import functest.utils.functest_constants as ft_constants
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as ft_utils
-class SdnVpnTests(TestCasesBase.TestCasesBase):
+class SdnVpnTests(testcase_base.TestcaseBase):
SDNVPN_REPO_TESTS = os.path.join(
ft_constants.SDNVPN_REPO_DIR, "tests/functest")
logger = ft_logger.Logger("sdnvpn").getLogger()
@@ -58,6 +58,7 @@ class SdnVpnTests(TestCasesBase.TestCasesBase):
kwargs = {}
return self.main(**kwargs)
+
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-r", "--report",
@@ -67,9 +68,9 @@ if __name__ == '__main__':
sdnvpn = SdnVpnTests()
try:
result = sdnvpn.main(**args)
- if result != TestCasesBase.TestCasesBase.EX_OK:
+ if result != testcase_base.TestcaseBase.EX_OK:
sys.exit(result)
if args['report']:
sys.exit(sdnvpn.push_to_db())
except Exception:
- sys.exit(TestCasesBase.TestCasesBase.EX_RUN_ERROR)
+ sys.exit(testcase_base.TestcaseBase.EX_RUN_ERROR)