]> sourceware.org Git - lvm2.git/commitdiff
tests: fix condition for exclusion of /dev
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 19 Mar 2021 23:28:13 +0000 (00:28 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 19 Mar 2021 23:28:13 +0000 (00:28 +0100)
test/lib/inittest.sh

index 58fa2e5e60181d7d0007f4115a3d52c9cc54892b..0014a8cfd676264d35d78fa6c3fdfb9079b7ccbd 100644 (file)
@@ -79,7 +79,7 @@ if test -z "$SKIP_ROOT_DM_CHECK" ; then
 fi
 
 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") || \
        die "failed to create temporary directory in \"$LVM_TEST_DIR\""
This page took 0.033494 seconds and 5 git commands to generate.