From cf1e2193adbc57d79d9e30271364117f2fc3ef2f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 14 Oct 2026 19:47:36 +0500 Subject: test: actually fail when supposed to --- test/tst-sessions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/tst-sessions.sh b/test/tst-sessions.sh index eb73a26..107e635 100644 --- a/test/tst-sessions.sh +++ b/test/tst-sessions.sh @@ -12,7 +12,10 @@ _test_format() { return 1 fi - if file --brief --dereference --mime -- "$output_path" | grep --quiet -- 'charset=binary$'; then + local file_output= + file_output="$( file --brief --dereference --mime -- "$output_path" )" + + if echo "$file_output" | grep --quiet -- 'charset=binary$'; then log 'Output is a binary file, not going to show that' return 0 fi -- cgit v1.3