From 7dcef66c48436c29b6faae8f6b00ee4f81265617 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Mon, 23 Dec 2024 14:03:09 +0000 Subject: [PATCH] Fix exit code for docker run failures (#74) * Update test-cm-based-submission-generation.yml * Force exit code = 1, for docker failures with exit code=512 --- script/run-docker-container/customize.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/run-docker-container/customize.py b/script/run-docker-container/customize.py index 9703080d0..869386f91 100644 --- a/script/run-docker-container/customize.py +++ b/script/run-docker-container/customize.py @@ -314,6 +314,8 @@ def postprocess(i): print('') docker_out = os.system(CMD) if docker_out != 0: + if docker_out % 256 == 0: + docker_out = 1 return {'return': docker_out, 'error': 'docker run failed'} return {'return': 0}