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:
parent
38b4354494
commit
a7a23e7dd2
@ -633,7 +633,7 @@ teardown() {
|
|||||||
test -n "$TESTDIR" && {
|
test -n "$TESTDIR" && {
|
||||||
cd "$TESTOLDPWD" || die "Failed to enter $TESTOLDPWD"
|
cd "$TESTOLDPWD" || die "Failed to enter $TESTOLDPWD"
|
||||||
# after this delete no further write is possible
|
# after this delete no further write is possible
|
||||||
rm -rf "$TESTDIR" || echo BLA
|
rm -rf "${TESTDIR:?}" || echo BLA
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
Loading…
Reference in New Issue
Block a user