Skip to content

Commit

Permalink
Fix exit code for docker run failures (#74)
Browse files Browse the repository at this point in the history
* Update test-cm-based-submission-generation.yml

* Force exit code = 1, for docker failures with exit code=512
  • Loading branch information
arjunsuresh authored Dec 23, 2024
1 parent a9e8329 commit 7dcef66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/run-docker-container/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7dcef66

Please sign in to comment.