Skip to content

Commit d64b4c2

Browse files
committed
Update container image run test to accept exit code 2
1 parent 3dd02ca commit d64b4c2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,9 @@ jobs:
162162
- name: Build image
163163
run: make docker
164164
- name: Run image
165-
run: docker run docker.io/projectsyn/commodore:test
165+
run: |
166+
docker run docker.io/projectsyn/commodore:test || exit_code=$?
167+
if [ "$exit_code" -ne 2 ]; then
168+
echo "Unexpected exit code $exit_code, expected 2"
169+
exit $exit_code
170+
fi

0 commit comments

Comments
 (0)