mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
Cirrus: Enable debugging delay on non-zero exit
There have been some python-podman flakes observed across multiple CI systems. Support capturing a VM for further investigation in the event of a non-zero exit. This is done by printing a warning message and delaying script-exit for a long time. Hopefully a human will notice and have an opportunity to enable deletion-protection on the VM. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -143,6 +143,18 @@ else
|
||||
RETURNCODE=$?
|
||||
fi
|
||||
|
||||
if [[ "$RETURNCODE" -ne 0 ]] && [[ -n "$FLAKE_DEBUG_DELAY" ]]
|
||||
then
|
||||
cat << EOF > /dev/stderr
|
||||
*****
|
||||
***** WARNING: \$FLAKE_DEBUG_DELAY IS SET AND PYTHON-PODMAN TESTS EXITED: $RETURNCODE
|
||||
***** WARNING: Sleeping for 30 minutes for test-VM preservation oportunity.
|
||||
*****
|
||||
EOF
|
||||
sleep 30m
|
||||
fi
|
||||
|
||||
|
||||
pkill -9 podman
|
||||
pkill -9 conmon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user