From: Francis Deslauriers Date: Thu, 17 Nov 2016 22:07:52 +0000 (-0500) Subject: Lava: Print jobid at submission and test cases report at the end X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=21e89f7e88ceb8aaecb139c9c6eae43266db28aa;p=lttng-ci.git Lava: Print jobid at submission and test cases report at the 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 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