From cde9bcf63d5b397ccc08e8966f510828eed0c0df Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 24 Jun 2023 11:58:47 +0100 Subject: [PATCH] docker/podman: test c/r with action-script Signed-off-by: Radostin Stoyanov --- scripts/ci/docker-test.sh | 3 +++ scripts/ci/podman-test.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/ci/docker-test.sh b/scripts/ci/docker-test.sh index beb7da6da..bd46d5dd3 100755 --- a/scripts/ci/docker-test.sh +++ b/scripts/ci/docker-test.sh @@ -28,6 +28,9 @@ CRIU_LOG='/criu.log' mkdir -p /etc/criu echo "log-file=$CRIU_LOG" > /etc/criu/runc.conf +# Test checkpoint/restore with action script +echo "action-script /usr/bin/true" | sudo tee /etc/criu/default.conf + export SKIP_CI_TEST=1 ./run-ci-tests.sh diff --git a/scripts/ci/podman-test.sh b/scripts/ci/podman-test.sh index 687acb8ff..72ad59a50 100755 --- a/scripts/ci/podman-test.sh +++ b/scripts/ci/podman-test.sh @@ -17,6 +17,9 @@ mkdir -p /etc/criu echo "manage-cgroups ignore" > /etc/criu/runc.conf sed -i 's/#runtime\s*=\s*.*/runtime = "runc"/' /usr/share/containers/containers.conf +# Test checkpoint/restore with action script +echo "action-script /usr/bin/true" | sudo tee /etc/criu/default.conf + podman info podman run --name cr -d docker.io/library/alpine /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'