tiny fix iterative checkpoint test case
Criu creates symlink named "parent" under image-path while doing
interactive checkpoint, without checking wether symlink points to
right place. This patch corrects related test case.
@@ -159,10 +159,13 @@ function simple_cr() {
# checkpoint the running container
mkdir image-dir
mkdir work-dir
- runc --criu "$CRIU" checkpoint --parent-path ./parent-dir --work-path ./work-dir --image-path ./image-dir test_busybox
+ runc --criu "$CRIU" checkpoint --parent-path ../parent-dir --work-path ./work-dir --image-path ./image-dir test_busybox
grep -B 5 Error ./work-dir/dump.log || true
[ "$status" -eq 0 ]
+ # check parent path is valid
+ [ -e ./image-dir/parent ]
+
# after checkpoint busybox is no longer running
testcontainer test_busybox checkpointed
