diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-30 16:08:41 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-07 05:43:45 +0200 |
commit | ce2caa5e651e7af55b0157887a9b1aaa0310f340 (patch) | |
tree | 070295faa920bc6e5aa897345f0b0791bd86bf35 /xtesting/ci/run_tests.py | |
parent | 12d8254ad80f974d9b733d5262af842c362fb95a (diff) |
Stop skipping testcases if one raises exceptions
https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console
Change-Id: Ic412c5b55169f599bd9cdb623f349dd2220940db
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 12217df35b64528f786d3548ca2353907b2b6ebb)
Diffstat (limited to 'xtesting/ci/run_tests.py')
-rw-r--r-- | xtesting/ci/run_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index d77041d2..ce3d2b5e 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -171,6 +171,12 @@ class Runner(object): LOGGER.exception("Cannot import module %s", run_dict['module']) except AttributeError: LOGGER.exception("Cannot get class %s", run_dict['class']) + except Exception: # pylint: disable=broad-except + LOGGER.exception( + "\n\nPlease fix the testcase %s.\n" + "All exceptions should be caught by the testcase instead!" + "\n\n", + test.get_name()) else: raise Exception("Cannot import the class for the test case.") return result |