master - tests: aux extra protection for rm -rf
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a7a23e7dd2f7fde59760a3d3f7c980d7a8f657a7 Commit: a7a23e7dd2f7fde59760a3d3f7c980d7a8f657a7 Parent: 38b4354494d3e6742d082c82ae7fc957be44e7e1 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat May 12 00:05:27 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat May 12 18:05:50 2018 +0200
tests: aux extra protection for rm -rf
--- test/lib/aux.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/aux.sh +1 -1
@@ -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"