diff options
-rw-r--r-- | sfc/tests/functest/run_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfc/tests/functest/run_tests.py b/sfc/tests/functest/run_tests.py index 36b76f4d..a066af51 100644 --- a/sfc/tests/functest/run_tests.py +++ b/sfc/tests/functest/run_tests.py @@ -101,7 +101,11 @@ def main(): logger.info("%s\n" % ("=" * len(title))) t = importlib.import_module(testcase, package=None) start_time = time.time() - result = t.main() + try: + result = t.main() + except Exception, e: + logger.error("Exception when executing: %s" % testcase) + logger.error(e) end_time = time.time() duration = end_time - start_time status = "FAIL" |