LVM2/test t-pvcreate-operation.sh
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.
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"