1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

tests: fix condition for exclusion of /dev

This commit is contained in:
Zdenek Kabelac 2021-03-20 00:28:13 +01:00
parent d5b37f24f4
commit edcc410835

View File

@ -79,7 +79,7 @@ if test -z "$SKIP_ROOT_DM_CHECK" ; then
fi fi
test -n "$LVM_TEST_DIR" || LVM_TEST_DIR=${TMPDIR:-/tmp} test -n "$LVM_TEST_DIR" || LVM_TEST_DIR=${TMPDIR:-/tmp}
test "$LVM_TEST_DIR" = "/dev" || die "Setting LVM_TEST_DIR=/dev is not supported" test "$LVM_TEST_DIR" = "/dev" && die "Setting LVM_TEST_DIR=/dev is not supported!"
TESTDIR=$(mkdtemp "$LVM_TEST_DIR" "$PREFIX.XXXXXXXXXX") || \ TESTDIR=$(mkdtemp "$LVM_TEST_DIR" "$PREFIX.XXXXXXXXXX") || \
die "failed to create temporary directory in \"$LVM_TEST_DIR\"" die "failed to create temporary directory in \"$LVM_TEST_DIR\""