mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci/podman: show criu logs in case of error
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
8437663cc6
commit
9a85fb6382
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ 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'
|
||||
|
||||
# Show criu logs in case of error
|
||||
trap 'cat /var/lib/containers/storage/overlay-containers/*/userdata/*.log' EXIT
|
||||
|
||||
sleep 1
|
||||
for i in $(seq 20); do
|
||||
echo "Test $i for podman container checkpoint"
|
||||
|
|
@ -64,3 +67,5 @@ for i in $(seq 20); do
|
|||
podman ps -a
|
||||
rm -f /tmp/chkpt.tar.gz
|
||||
done
|
||||
|
||||
trap 'echo PASS' EXIT
|
||||
Loading…
Add table
Add a link
Reference in a new issue