1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +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 4bdebfd151
commit 2fbeba9c32

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"