Fix adapt path for import_module 05/41705/1
authortomsou <soth@intracom-telecom.com>
Tue, 12 Sep 2017 13:23:34 +0000 (13:23 +0000)
committertomsou <soth@intracom-telecom.com>
Tue, 12 Sep 2017 13:23:34 +0000 (13:23 +0000)
    Fix the path to include each test case when the suite runs

Change-Id: I3cdd55ed6af3e131c2f0b89ffc5bd74f95eeadbf
Signed-off-by: tomsou <soth@intracom-telecom.com>
sdnvpn/test/functest/run_sdnvpn_tests.py

index 6fe7558..140256d 100644 (file)
@@ -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: