Merge pull request #1645 from cevich/flake_delay

Cirrus: Enable debugging delay on non-zero exit
This commit is contained in:
OpenShift Merge Robot 2018-10-15 07:26:29 -07:00 committed by GitHub
commit 2bc9a3c4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,8 @@ env:
CNI_COMMIT: "7480240de9749f9a0a5c8614b17f1f03e0c06ab9"
CRIO_COMMIT: "662dbb31b5d4f5ed54511a47cde7190c61c28677"
RUNC_COMMIT: "ad0f5255060d36872be04de22f8731f38ef2d7b1"
# Enable debugging delay on test-failure if non-empty.
FLAKE_DEBUG_DELAY: 1
# File to update in home-dir with task-specific env. var values
ENVLIB: ".bash_profile"
# Overrides default location (/tmp/cirrus) for repo clone

View File

@ -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