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:
parent
99ab428344
commit
5d7ad8ae75
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user