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:
parent
4bdebfd151
commit
2fbeba9c32
@ -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…
Reference in New Issue
Block a user