From 0cf3f29c0e101ce5948663ff976b6fd8849e67fe Mon Sep 17 00:00:00 2001 From: tomsou Date: Tue, 12 Sep 2017 13:23:34 +0000 Subject: Fix adapt path for import_module Fix the path to include each test case when the suite runs Change-Id: I3cdd55ed6af3e131c2f0b89ffc5bd74f95eeadbf Signed-off-by: tomsou --- sdnvpn/test/functest/run_sdnvpn_tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sdnvpn/test/functest/run_sdnvpn_tests.py') diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py index 6fe7558..140256d 100644 --- a/sdnvpn/test/functest/run_sdnvpn_tests.py +++ b/sdnvpn/test/functest/run_sdnvpn_tests.py @@ -59,8 +59,7 @@ class SdnvpnFunctest(testcase.TestCase): (test_name, test_descr)) self.__logger.info(title) self.__logger.info("%s\n" % ("=" * len(title))) - module = 'sdnvpn.test.functest.' + test_name - t = importlib.import_module(module, package=None) + t = importlib.import_module(test_name, package=None) try: result = t.main() except Exception as ex: -- cgit 1.2.3-korg