From d1b69f4dbf8384e487c7241081e661b46128ef5b Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 28 Nov 2016 16:17:41 -0500 Subject: [PATCH] Lava: Print job test cases summary at the very end Signed-off-by: Francis Deslauriers --- scripts/lttng-baremetal-tests/lava-submit.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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: -- 2.34.1