1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

Relax a check on blkid exit value, which seems to be different in different

versions. Fixes a spurious test failure introduced with -o pipefail.
This commit is contained in:
Petr Rockai 2010-02-22 14:47:55 +00:00
parent 99ab428344
commit 5d7ad8ae75

View File

@ -114,4 +114,5 @@ dd if=/dev/zero of=$dev1 bs=1024 count=64
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"