Skip to content

Commit

Permalink
tests: workaround valgrind SIGPIPE
Browse files Browse the repository at this point in the history
Parsing --debug output with quiet flag can produce SIGPIPE output
if running with valgrind wrapper, just workaround it with another
grep as used elsewhere.
  • Loading branch information
mbroz committed Jul 30, 2024
1 parent 3a77947 commit e0852d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compat-test2
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ prepare "[46] Blkid disable check" wipe
if [ "$HAVE_BLKID" -gt 0 ]; then
xz -dkf $HEADER_LUKS2_PV.xz
# batch mode disables blkid print, use --debug to check it
echo $PWD1 | $CRYPTSETUP -q --debug luksFormat $FAST_PBKDF_OPT --type luks2 $HEADER_LUKS2_PV 2>&1 | grep -q "LVM2_member" || fail
echo $PWD1 | $CRYPTSETUP -q --debug luksFormat $FAST_PBKDF_OPT --type luks2 $HEADER_LUKS2_PV 2>&1 | grep "signature" | grep -q "LVM2_member" || fail
xz -dkf $HEADER_LUKS2_PV.xz
echo $PWD1 | $CRYPTSETUP -q --debug --disable-blkid luksFormat $FAST_PBKDF_OPT --type luks2 $HEADER_LUKS2_PV 2>&1 | grep -q "LVM2_member" && fail
fi
Expand Down

0 comments on commit e0852d2

Please sign in to comment.