Move import_modules inside try block 97/53297/1
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Thu, 8 Mar 2018 11:34:08 +0000 (12:34 +0100)
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Thu, 8 Mar 2018 11:34:08 +0000 (12:34 +0100)
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 <periyasamy.palanisamy@ericsson.com>
sdnvpn/test/functest/run_sdnvpn_tests.py

index 41bd6a1..224ef9b 100644 (file)
@@ -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"