Disable podman checkpoint/restore tests

crun is not built against criu-devel. Disable test for now.

Resolves: rhbz#1955119
This commit is contained in:
Adrian Reber 2021-05-05 12:10:09 -04:00
parent bd5d19fac7
commit 92467b1b63
1 changed files with 8 additions and 10 deletions

View File

@ -1,21 +1,20 @@
#!/bin/bash #!/bin/bash
# crun is not built with checkpoint/restore support
exit 0
set -eux set -eux
ls -la ls -la
echo "Start container with tomcat" echo "Start container"
podman --log-level debug run --tmpfs /tmp --tmpfs /usr/local/tomcat/logs -d docker://docker.io/yovfiatbeb/podman-criu-test podman --log-level debug run -d quay.io/adrianreber/counter
echo "See which containers are running" echo "See which containers are running"
podman ps podman ps
# tomcat needs some time to start up echo "Connect to the container"
echo "Wait 15 seconds for tomcat to start" curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8088
sleep 15
echo "Connect to tomcat in the container"
curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8080/examples/servlets/servlet/HelloWorldExample -v
echo "Checkpoint container" echo "Checkpoint container"
podman --log-level debug container checkpoint -l podman --log-level debug container checkpoint -l
@ -26,7 +25,6 @@ podman --log-level debug container restore -l
podman ps -a podman ps -a
echo "Check if we can connect to the restored container" echo "Check if we can connect to the restored container"
curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8080/examples/servlets/servlet/HelloWorldExample -v curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8088
ls -la ls -la
echo test