diff options
-rw-r--r-- | tests/libtest.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh index 611d9d0..253b489 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -43,8 +43,8 @@ tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX) touch "${tempdir}/.testtmp" function cleanup () { if test -n "${TEST_SKIP_CLEANUP:-}"; then - echo "Skipping cleanup of ${test_tmpdir}" - elif test -f "${tempdir}/.test"; then + echo "Skipping cleanup of ${tempdir}" + elif test -f "${tempdir}/.testtmp"; then rm "${tempdir}" -rf fi } |