diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh index 4ed8d20ae..28bc4e8e6 100644 --- a/test/lib/inittest.sh +++ b/test/lib/inittest.sh @@ -30,7 +30,7 @@ COMMON_PREFIX="LVMTEST" PREFIX="${COMMON_PREFIX}$$" # Check we are not conflickting with some exiting setup -dmsetup table | not grep "$PREFIX" || die "DM table already has devices with prefix $PREFIX!" +dmsetup table | not grep "${PREFIX}[^0-9]" || die "DM table already has devices with prefix $PREFIX!" if test -z "$LVM_TEST_DIR"; then LVM_TEST_DIR=$TMPDIR; fi TESTDIR=$(mkdtemp "${LVM_TEST_DIR:-/tmp}" "$PREFIX.XXXXXXXXXX") || \