diff options
author | Simon McVittie <smcv@collabora.com> | 2021-06-28 10:54:59 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-06-28 11:11:35 +0100 |
commit | 33ebfa862d7554938f807b7f52ac7bb1da231ff9 (patch) | |
tree | 2dc963f22e3650ae62d08007e6a779c60036611d | |
parent | 7b514a097fe3336609d584cff2da42d1d270bf84 (diff) | |
download | bubblewrap-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.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 } |