summaryrefslogtreecommitdiff
path: root/contrib/python
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-15 07:26:29 -0700
committerGitHub <noreply@github.com>2018-10-15 07:26:29 -0700
commit2bc9a3c4bbaade50264b1dbf348d1521cdd8d8b5 (patch)
tree626da6c549e377c077a2da3e28d3180f5a856aa5 /contrib/python
parentf667a782a40be4ca757ea24d0d1e012fc618bd6a (diff)
parentb610913ef55ac36d0b145a7d20461649650cc5a1 (diff)
downloadpodman-2bc9a3c4bbaade50264b1dbf348d1521cdd8d8b5.tar.gz
podman-2bc9a3c4bbaade50264b1dbf348d1521cdd8d8b5.tar.bz2
podman-2bc9a3c4bbaade50264b1dbf348d1521cdd8d8b5.zip
Merge pull request #1645 from cevich/flake_delay
Cirrus: Enable debugging delay on non-zero exit
Diffstat (limited to 'contrib/python')
-rwxr-xr-xcontrib/python/podman/test/test_runner.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/python/podman/test/test_runner.sh b/contrib/python/podman/test/test_runner.sh
index 65cbd1e9c..081b90779 100755
--- a/contrib/python/podman/test/test_runner.sh
+++ b/contrib/python/podman/test/test_runner.sh
@@ -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