From d4be5c92583fcc7655fc2897db8ecb16a371582f Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Thu, 28 Jul 2016 16:44:22 +0200 Subject: [PATCH] Prevent exiting the overall execution when there is a failed test case Unless it is a test with the flag blocking=true Change-Id: Iada54319db1c81c73781f1b135eb496bc9f2af1b Signed-off-by: jose.lausuch --- ci/run_tests.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/ci/run_tests.py b/ci/run_tests.py index 383a20f9f..758a87c2d 100755 --- a/ci/run_tests.py +++ b/ci/run_tests.py @@ -128,8 +128,6 @@ def run_test(test, tier_name): update_test_info(test_name, result_str, duration_str) - return result - def run_tier(tier): tier_name = tier.get_name() @@ -144,11 +142,7 @@ def run_tier(tier): print_separator("#") logger.debug("\n%s" % tier) for test in tests: - res = run_test(test, tier_name) - if res != 0: - return res - - return 0 + run_test(test, tier_name) def run_all(tiers): @@ -173,12 +167,9 @@ def run_all(tiers): logger.info("Tests to be executed:%s" % summary) EXECUTED_TEST_CASES = generate_report.init(tiers_to_run) for tier in tiers_to_run: - res = run_tier(tier) - if res != 0: - return res - generate_report.main(EXECUTED_TEST_CASES) + run_tier(tier) - return 0 + generate_report.main(EXECUTED_TEST_CASES) def main(): -- 2.16.6