diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-10-26 10:11:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 10:11:09 -0700 |
commit | a36dbc8a3fb080aa392183afdc2e13b02ac4eb65 (patch) | |
tree | 913bdd7a9e52c8686c757ee636428988af589091 /contrib/python/podman/test/test_runner.sh | |
parent | aa853b20913696286fff05a0e1572421e26179a2 (diff) | |
parent | d62fa127a18a681ca85f119a2105093329edfaad (diff) | |
download | podman-a36dbc8a3fb080aa392183afdc2e13b02ac4eb65.tar.gz podman-a36dbc8a3fb080aa392183afdc2e13b02ac4eb65.tar.bz2 podman-a36dbc8a3fb080aa392183afdc2e13b02ac4eb65.zip |
Merge pull request #1717 from jwhonce/wip/unittest
Ensure test container in running state
Diffstat (limited to 'contrib/python/podman/test/test_runner.sh')
-rwxr-xr-x | contrib/python/podman/test/test_runner.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/podman/test/test_runner.sh b/contrib/python/podman/test/test_runner.sh index 65cbd1e9c..bf097e2b2 100755 --- a/contrib/python/podman/test/test_runner.sh +++ b/contrib/python/podman/test/test_runner.sh @@ -31,7 +31,9 @@ function cleanup { # aggressive cleanup as tests may crash leaving crap around umount '^(shm|nsfs)' umount '\/run\/netns' - rm -r "$1" + if [[ $RETURNCODE -eq 0 ]]; then + rm -r "$1" + fi } # Create temporary directory for storage |