Tests: test_files.sh: Suppress an expected warning from the log.

xz (but not xzdec) will normally warn about unsupported check
but since we are testing specifically such a file, it's better
to silence that warning so that it doesn't look suspicious in
test_files.sh.log.

The use of -q and -Q in xzdec is just for consistency and
doesn't affect the result at least for now.
This commit is contained in:
Lasse Collin 2022-10-27 15:30:13 +03:00
parent 798c86e423
commit b3459327a5
1 changed files with 2 additions and 2 deletions

View File

@ -85,14 +85,14 @@ done
# Test that this passes with --no-warn (-Q). # Test that this passes with --no-warn (-Q).
I="$srcdir/files/unsupported-check.xz" I="$srcdir/files/unsupported-check.xz"
if test -z "$XZ" || "$XZ" -dcQ "$I" > /dev/null; then if test -z "$XZ" || "$XZ" -dcqQ "$I" > /dev/null; then
: :
else else
echo "Unsupported file failed with xz -Q: $I" echo "Unsupported file failed with xz -Q: $I"
exit 1 exit 1
fi fi
if test -z "$XZDEC" || "$XZDEC" -Q "$I" > /dev/null; then if test -z "$XZDEC" || "$XZDEC" -qQ "$I" > /dev/null; then
: :
else else
echo "Unsupported file failed with xzdec -Q: $I" echo "Unsupported file failed with xzdec -Q: $I"