From 21e89f7e88ceb8aaecb139c9c6eae43266db28aa Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 17 Nov 2016 17:07:52 -0500 Subject: [PATCH] Lava: Print jobid at submission and test cases report at the end Signed-off-by: Francis Deslauriers --- scripts/lttng-baremetal-tests/lava-submit.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lttng-baremetal-tests/lava-submit.py b/scripts/lttng-baremetal-tests/lava-submit.py index 52bc4d7..7eeb367 100644 --- a/scripts/lttng-baremetal-tests/lava-submit.py +++ b/scripts/lttng-baremetal-tests/lava-submit.py @@ -320,6 +320,8 @@ def main(): jobid = server.scheduler.submit_job(json.dumps(j)) + print('Lava jobid:{}'.format(jobid)) + #Check the status of the job every 30 seconds jobstatus = server.scheduler.job_status(jobid)['job_status'] while jobstatus in 'Submitted' or jobstatus in 'Running': @@ -332,12 +334,12 @@ def main(): passed, failed=check_job_all_test_cases_state_count(server, jobid) - print('With {} passed tests and {} failed tests.'.format(passed, failed)) + print('With {} passed and {} failed Lava test cases.'.format(passed, failed)) if test_type is TestType.tests: print_test_output(server, jobid) - if failed == 0: + if failed == 0: return 0 else: return -1 -- 2.34.1