From: Francis Deslauriers Date: Mon, 28 Nov 2016 21:17:41 +0000 (-0500) Subject: Lava: Print job test cases summary at the very end X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d1b69f4dbf8384e487c7241081e661b46128ef5b;p=lttng-ci.git Lava: Print job test cases summary at the very end Signed-off-by: Francis Deslauriers --- diff --git a/scripts/lttng-baremetal-tests/lava-submit.py b/scripts/lttng-baremetal-tests/lava-submit.py index e528f9d..ad64e78 100644 --- a/scripts/lttng-baremetal-tests/lava-submit.py +++ b/scripts/lttng-baremetal-tests/lava-submit.py @@ -332,17 +332,17 @@ def main(): time.sleep(30) jobstatus = server.scheduler.job_status(jobid)['job_status'] - print('Job ended with {} status.'.format(jobstatus)) - if jobstatus not in 'Complete': - return -1 - passed, failed=check_job_all_test_cases_state_count(server, jobid) - print('With {} passed and {} failed Lava test cases.'.format(passed, failed)) - if test_type is TestType.tests: print_test_output(server, jobid) + print('Job ended with {} status.'.format(jobstatus)) + if jobstatus not in 'Complete': + return -1 + else: + print('With {} passed and {} failed Lava test cases.'.format(passed, failed)) + if failed == 0: return 0 else: