diff options
author | “Manuel Buil” <mbuil@suse.com> | 2017-03-17 14:34:04 +0100 |
---|---|---|
committer | Brady Johnson <brady.allen.johnson@ericsson.com> | 2017-03-17 14:06:41 +0000 |
commit | e75e14e4682a0419bb26f510dbc4805b0534c8d4 (patch) | |
tree | c0e160bffb11753edc6359901c0ec7e2b364afaf | |
parent | 8512ad1b8b7986b56fc55965b9b8c27f81e5c00b (diff) |
Run all testcases even if one throws an exception
If the first testcase throws an exception, the rest were not being
executed
Change-Id: I5fdc521da840ffdbc7a0bde120d7bfe7907b881c
Signed-off-by: “Manuel Buil” <mbuil@suse.com>
(cherry picked from commit 84f3ea23ccc9f6e19a86748519deb600b2ac95e3)
-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 9beb5ab9..f2a288a2 100644 --- a/sfc/tests/functest/run_tests.py +++ b/sfc/tests/functest/run_tests.py @@ -100,7 +100,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" |