aboutsummaryrefslogtreecommitdiff
path: root/contrib/python/podman/test/test_runner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/podman/test/test_runner.sh')
-rwxr-xr-xcontrib/python/podman/test/test_runner.sh4
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