]> sourceware.org Git - lvm2.git/commitdiff
tests: use egrep to check for message
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 12 Apr 2017 20:52:56 +0000 (22:52 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 12 Apr 2017 21:05:50 +0000 (23:05 +0200)
Seems we may get different '' around option on different nixes.

test/shell/vgextend-restoremissing.sh

index 7f8fee00b239a80bd48d205f9e929d8a3167800b..d94eb5c270f7b3c4724e4943950e1c2124945b43 100644 (file)
@@ -24,7 +24,7 @@ invalid vgextend
 # --metadatacopies => use --pvmetadatacopies
 invalid vgextend --metadatacopies 3 $vg "$dev1" 2>&1 | tee out
 #grep -- "use --pvmetadatacopies" out
-grep -- "unrecognized option '--metadatacopies'" out
+egrep -- "unrecognized option.*--metadatacopies" out
 
 # VG name should exist
 fail vgextend --restoremissing $vg-invalid "$dev1"
This page took 0.02979 seconds and 5 git commands to generate.