From 26cbe60ba4939ec8e10bebc3bd8ec259dcfe9b60 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 1 May 2019 16:06:12 -0400 Subject: [PATCH] Fix: continue on spurious protocol error Signed-off-by: Jonathan Rajotte --- scripts/system-tests/lava2-submit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': -- 2.34.1