summaryrefslogtreecommitdiffstats
path: root/sdnvpn
diff options
context:
space:
mode:
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2018-03-08 12:34:08 +0100
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2018-03-08 12:34:08 +0100
commitf79e5d09b0ac23106aafa6e078c681b2c8c21009 (patch)
tree972ec0ebb9a5848857640dab8982136724d7176d /sdnvpn
parentc1a796eb1158a31f9b92ebf55d3c01abdef20aa7 (diff)
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 <periyasamy.palanisamy@ericsson.com>
Diffstat (limited to 'sdnvpn')
-rw-r--r--sdnvpn/test/functest/run_sdnvpn_tests.py7
1 files changed, 6 insertions, 1 deletions
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"