From d9997fe46242b63c867db3d9d7f8997e3fe95e5b Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Wed, 21 Dec 2016 14:30:53 -0500 Subject: [PATCH] Lava: Print when the job is being scheduled Signed-off-by: Francis Deslauriers --- scripts/lttng-baremetal-tests/lava-submit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lttng-baremetal-tests/lava-submit.py b/scripts/lttng-baremetal-tests/lava-submit.py index 6602e33..36f6fb5 100644 --- a/scripts/lttng-baremetal-tests/lava-submit.py +++ b/scripts/lttng-baremetal-tests/lava-submit.py @@ -397,7 +397,11 @@ def main(): #Check the status of the job every 30 seconds jobstatus = server.scheduler.job_status(jobid)['job_status'] + not_running = False while jobstatus in 'Submitted' or jobstatus in 'Running': + if not_running is False and jobstatus in 'Running': + print('Job started running') + not_running = True time.sleep(30) jobstatus = server.scheduler.job_status(jobid)['job_status'] -- 2.34.1