From: Periyasamy Palanisamy Date: Thu, 8 Mar 2018 11:34:08 +0000 (+0100) Subject: Move import_modules inside try block X-Git-Tag: 6.0.0~5 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F53297%2F1;p=sdnvpn.git 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 --- 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"