1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: aux extra protection for rm -rf

This commit is contained in:
Zdenek Kabelac 2018-05-12 00:05:27 +02:00
parent 38b4354494
commit a7a23e7dd2

View File

@ -633,7 +633,7 @@ teardown() {
test -n "$TESTDIR" && {
cd "$TESTOLDPWD" || die "Failed to enter $TESTOLDPWD"
# after this delete no further write is possible
rm -rf "$TESTDIR" || echo BLA
rm -rf "${TESTDIR:?}" || echo BLA
}
echo "ok"