Skip to content

Commit 9192b05

Browse files
committed
Fix integration when missing criu
If criu isn't installed in the host, integration tests won't be able to go on, it should skip checkpoint/restore tests instead of interrupt. Output before: ``` $ make localintegration bats -t tests/integration /usr/lib/bats/bats-exec-suite: line 20: let: count+=: syntax error: operand expected (error token is "+=") Makefile:103: recipe for target 'localintegration' failed ``` Signed-off-by: Zhang Wei <[email protected]>
1 parent a0159fd commit 9192b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/helpers.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ HELLO_IMAGE="$TESTDATA/hello-world.tar"
1818
HELLO_BUNDLE="$BATS_TMPDIR/hello-world"
1919

2020
# CRIU PATH
21-
CRIU="$(which criu)"
21+
CRIU="$(which criu || true)"
2222

2323
# Kernel version
2424
KERNEL_VERSION="$(uname -r)"

0 commit comments

Comments
 (0)