Skip to contentSkip to conversation

LVM2/test t-pvcreate-operation.sh

PATCH [email protected] 1 participant 1 message Feb 22, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-02-22 14:47:56

Modified files:
test : t-pvcreate-operation.sh

Log message:
Relax a check on blkid exit value, which seems to be different in different versions. Fixes a spurious test failure introduced with -o pipefail.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation.sh.diff?cvsroot=lvm2&r1=1.16&r2=1.17

test/t-pvcreate-operation.sh +2 -1
@@ -114,4 +114,5 @@
 mkswap $dev1
 blkid -c /dev/null $dev1 | grep "swap"
 pvcreate -f $dev1
-blkid -c /dev/null $dev1 | not grep "swap"
+# blkid cannot make up its mind whether not finding anything it knows is a failure or not
+(blkid -c /dev/null $dev1 || true) | not grep "swap"