From b3459327a51f4b8239d19e6c34b4e0c6bc2d81de Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 27 Oct 2022 15:30:13 +0300 Subject: [PATCH] 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. --- tests/test_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_files.sh b/tests/test_files.sh index b550b757..4fa3492c 100755 --- a/tests/test_files.sh +++ b/tests/test_files.sh @@ -85,14 +85,14 @@ done # Test that this passes with --no-warn (-Q). 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 echo "Unsupported file failed with xz -Q: $I" exit 1 fi -if test -z "$XZDEC" || "$XZDEC" -Q "$I" > /dev/null; then +if test -z "$XZDEC" || "$XZDEC" -qQ "$I" > /dev/null; then : else echo "Unsupported file failed with xzdec -Q: $I"