summaryrefslogtreecommitdiff
path: root/ci/verify-chef.sh
diff options
context:
space:
mode:
authorScott Hain <shain@chef.io>2018-01-16 14:24:20 -0800
committerScott Hain <shain@chef.io>2018-01-16 14:24:20 -0800
commit633c4fbd829ca9ecea4b06a7e288da1444cc6d60 (patch)
treeef80231f8181ce3827b541bda906d74e88f28e58 /ci/verify-chef.sh
parentfcd8d778baeeb990a64fe9042164bbd3e1dd5269 (diff)
downloadchef-633c4fbd829ca9ecea4b06a7e288da1444cc6d60.tar.gz
Force deletion of tmpdir with sudoshain/force_delete_tmpdir
This makes sure we don't fail on the very slim chance that an OS generated file (lookin' at you, AIX) ends up in this directory and blocks deletion. Signed-off-by: Scott Hain <shain@chef.io>
Diffstat (limited to 'ci/verify-chef.sh')
-rwxr-xr-xci/verify-chef.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh
index 0c90d65dbe..528152b3b6 100755
--- a/ci/verify-chef.sh
+++ b/ci/verify-chef.sh
@@ -5,7 +5,7 @@ set -evx
# Set up a custom tmpdir, and clean it up before and after the tests
TMPDIR="${TMPDIR:-/tmp}/cheftest"
export TMPDIR
-rm -rf $TMPDIR
+sudo rm -rf $TMPDIR
mkdir -p $TMPDIR
# $PROJECT_NAME is set by Jenkins, this allows us to use the same script to verify