diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-28 16:44:22 +0200 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-07-28 14:47:35 +0000 |
commit | d4be5c92583fcc7655fc2897db8ecb16a371582f (patch) | |
tree | b7bb8d0b2ca812cab8b796af3f97ed13578f039b | |
parent | f80d9312389dc97a570e5fbcde3491080cc9e307 (diff) |
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 <jose.lausuch@ericsson.com>
-rwxr-xr-x | ci/run_tests.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ci/run_tests.py b/ci/run_tests.py index 383a20f9..758a87c2 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(): |