summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-10-27 15:30:13 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-10-27 15:30:13 +0300
commitb3459327a51f4b8239d19e6c34b4e0c6bc2d81de (patch)
treee5f298ce197feb8070f86fd4409aaf531e78c4fb /tests
parent798c86e4231e0835ab76ccd0810c8ea30833b2ce (diff)
downloadxz-b3459327a51f4b8239d19e6c34b4e0c6bc2d81de.tar.gz
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.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_files.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_files.sh b/tests/test_files.sh
index b550b75..4fa3492 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"