diff --git a/Makefile b/Makefile index 613f9fc8f..e2efca8d5 100644 --- a/Makefile +++ b/Makefile @@ -15,12 +15,12 @@ rubocop: test: target/docker-image.txt img=$$(cat target/docker-image.txt) - docker run --rm --entrypoint '/bin/bash' "$${img}" -c 'bundle exec judges test --disable live --lib /action/lib /action/judges' - echo "$$?" > target/test.exit + docker run --rm --entrypoint '/bin/bash' "$${img}" -c 'bundle exec judges test --disable live --lib /action/lib /action/judges' || rc=$$? + echo "$${rc:-0}" > target/test.exit entry: target/docker-image.txt - ./test-action.sh "$$(cat $<)" - echo "$$?" > target/entry.exit + ./test-action.sh "$$(cat $<)" || rc=$$? + echo "$${rc:-0}" > target/entry.exit rmi: target/docker-image.txt img=$$(cat $<)