coverage.sh: redirect to /dev/null instead of --quiet to avoid broken pipe

This commit is contained in:
Johannes 'josch' Schauer 2020-01-04 01:14:01 +01:00
parent 327c0e83ca
commit 95e4a82937
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -253,7 +253,10 @@ cat << END > shared/test.sh
#!/bin/sh #!/bin/sh
set -eu set -eu
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
$CMD --man | grep --quiet --fixed-strings 'mmdebstrap [OPTION...] [*SUITE* [*TARGET* [*MIRROR*...]]]'
# we redirect to /dev/null instead of using --quiet to not cause a broken pipe
# when grep exits before mmdebstrap was able to write all its output
$CMD --man | grep --fixed-strings 'mmdebstrap [OPTION...] [*SUITE* [*TARGET* [*MIRROR*...]]]' >/dev/null
END END
if [ "$HAVE_QEMU" = "yes" ]; then if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh ./run_qemu.sh