summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-06-28 10:54:59 +0100
committerSimon McVittie <smcv@collabora.com>2021-06-28 11:11:35 +0100
commit33ebfa862d7554938f807b7f52ac7bb1da231ff9 (patch)
tree2dc963f22e3650ae62d08007e6a779c60036611d
parent7b514a097fe3336609d584cff2da42d1d270bf84 (diff)
downloadbubblewrap-33ebfa862d7554938f807b7f52ac7bb1da231ff9.tar.gz
tests: Really clean up test temporary directory
The flag file we create and the flag file we check for were not in sync. Also similarly correct the variable name in an info message. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--tests/libtest.sh4
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
}