Skip to content

Commit 79c334c

Browse files
authored
Merge pull request #628 from ricardobranco777/crun
Skip test if RUNTIME_BINARY is not runc
2 parents 6de0768 + 3bb1a4e commit 79c334c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/04-runtime.bats

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ teardown() {
9292
assert "${output}" =~ "\"pid\": $CONTAINER_PID"
9393
}
9494

95-
@test "runtime: runtime error with _OCI_SYNCPIPE defined" {
95+
@test "runtime: runc error with _OCI_SYNCPIPE defined" {
96+
if [[ $(basename "$RUNTIME_BINARY") != "runc" ]]; then
97+
skip "test requires runc"
98+
fi
9699
# This trailing " results in wrong config.json. We expect the runtime
97100
# failure.
98101
setup_container_env '"'

0 commit comments

Comments
 (0)