diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-09 21:30:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-13 16:02:20 +0200 |
commit | 8cc21354c2b4cb58223950b7e089eb28e602f0e8 (patch) | |
tree | 7bd95905013dc78f72e006e006dd91075e2cafa8 | |
parent | 2cb1f6eafeb72dcd49a7ed941d9c5400540284fa (diff) | |
download | lvm2-8cc21354c2b4cb58223950b7e089eb28e602f0e8.tar.gz |
tests: better regex check
Enhance check for matching prefix.
-rw-r--r-- | test/lib/inittest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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") || \ |