summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomsou <soth@intracom-telecom.com>2017-09-12 13:23:34 +0000
committertomsou <soth@intracom-telecom.com>2017-09-12 13:23:34 +0000
commit0cf3f29c0e101ce5948663ff976b6fd8849e67fe (patch)
tree3f9aafda00fb7721340a35ef5f8ef17dea0e0b54
parent8d84c2c31b28fb70984407740d3e3a8105993b60 (diff)
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 <soth@intracom-telecom.com>
-rw-r--r--sdnvpn/test/functest/run_sdnvpn_tests.py3
1 files changed, 1 insertions, 2 deletions
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: