master - tests: better regex check
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8cc21354c2b4cb58223950b7e089eb28e602f0e8 Commit: 8cc21354c2b4cb58223950b7e089eb28e602f0e8 Parent: 2cb1f6eafeb72dcd49a7ed941d9c5400540284fa Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Oct 9 21:30:37 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Oct 13 16:02:20 2015 +0200
tests: better regex check
Enhance check for matching prefix.
--- test/lib/inittest.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/inittest.sh +1 -1
@@ -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") || \