From: Jonathan Rajotte Date: Wed, 1 May 2019 20:06:12 +0000 (-0400) Subject: Fix: continue on spurious protocol error X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=26cbe60ba4939ec8e10bebc3bd8ec259dcfe9b60;p=lttng-ci.git Fix: continue on spurious protocol error Signed-off-by: Jonathan Rajotte --- diff --git a/scripts/system-tests/lava2-submit.py b/scripts/system-tests/lava2-submit.py index a114f1c..fe95daa 100644 --- a/scripts/system-tests/lava2-submit.py +++ b/scripts/system-tests/lava2-submit.py @@ -227,7 +227,10 @@ def main(): print('Job started running') running = True time.sleep(30) - jobstatus = server.scheduler.job_state(jobid)['job_state'] + try: + jobstatus = server.scheduler.job_state(jobid)['job_state'] + except xmlrpc.client.ProtocolError as e: + print('Protocol error, retring') print('Job ended with {} status.'.format(jobstatus)) if jobstatus != 'Finished':