diff --git a/tests/integration/checkpoint.bats b/tests/integration/checkpoint.bats index d5b5c9fb7f9..f028010c834 100644 --- a/tests/integration/checkpoint.bats +++ b/tests/integration/checkpoint.bats @@ -211,11 +211,13 @@ function simple_cr() { lp_pid=$! # Restore lazily from checkpoint. - # The restored container needs a different name as the checkpointed + # The restored container needs a different name (as well as systemd + # unit name, in case systemd cgroup driver is used) as the checkpointed # container is not yet destroyed. It is only destroyed at that point # in time when the last page is lazily transferred to the destination. # Killing the CRIU on the checkpoint side will let the container # continue to run if the migration failed at some point. + [ -n "$RUNC_USE_SYSTEMD" ] && set_cgroups_path runc_restore_with_pipes ./image-dir test_busybox_restore --lazy-pages wait $cpt_pid