From f79e5d09b0ac23106aafa6e078c681b2c8c21009 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Thu, 8 Mar 2018 12:34:08 +0100 Subject: Move import_modules inside try block Its still sdnvpn testsuite is failing at testcase_8 for bgpvpn ha scenario whereas it runs fine in the local setup. There is no logs generated from the CI run, moving import_modules inside try block and added few info logs to find out what is going on CI setup. [1] http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-03-03_23-12-24/bgpvpn.log [2] https://build.opnfv.org/ci/job/functest-apex-baremetal-daily-master/827//console Change-Id: Icffa48cd56222bc1063ca16704e90a899380634d Signed-off-by: Periyasamy Palanisamy --- sdnvpn/test/functest/run_sdnvpn_tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py index 41bd6a1..224ef9b 100644 --- a/sdnvpn/test/functest/run_sdnvpn_tests.py +++ b/sdnvpn/test/functest/run_sdnvpn_tests.py @@ -74,9 +74,14 @@ class SdnvpnFunctest(feature.Feature): (test_name, test_descr)) self.__logger.info(title) self.__logger.info("%s\n" % ("=" * len(title))) - t = importlib.import_module(test_name, package=None) try: + self.__logger.info("Importing the testcase %s" % test_name) + t = importlib.import_module(test_name, package=None) + self.__logger.info("Calling the testcase %s main method" + % test_name) result = t.main() + self.__logger.info("Execution is complete for the testcase %s" + % test_name) except Exception as ex: result = -1 self.__logger.info("Caught Exception in %s: %s Trace: %s" -- cgit 1.2.3-korg