summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2020-04-13 14:59:52 -0400
committerMatt Clay <matt@mystile.com>2020-04-15 12:47:55 -0700
commit0b224d657ddd25b997720038adc52aefe9e714f1 (patch)
tree59da6853bc285784a07ceaeafc1332002c1cb4fe
parentc558023f7aa77d13767dd4f11a37229a0014b04f (diff)
downloadansible-0b224d657ddd25b997720038adc52aefe9e714f1.tar.gz
added trap
-rwxr-xr-xtest/integration/targets/fetch/runme.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integration/targets/fetch/runme.sh b/test/integration/targets/fetch/runme.sh
index 4a78b2cd7f..dd9b55b784 100755
--- a/test/integration/targets/fetch/runme.sh
+++ b/test/integration/targets/fetch/runme.sh
@@ -4,6 +4,8 @@ set -eux
OUTPUT_DIR=${OUTPUT_DIR:-$(mktemp -d)}
+trap 'rm -rf "${OUTPUT_DIR}"' EXIT
+
# setup required roles
ln -s ../../prepare_tests roles/prepare_tests