summaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-14 19:47:36 +0500
committerEgor Tensin <egor@tensin.name>2026-10-14 19:51:41 +0500
commitcf1e2193adbc57d79d9e30271364117f2fc3ef2f (patch)
treea7d395ddb35ee4f03cfdaadec1319978113bbbcc /test
parenttest: upgrade test-harness (diff)
downloadvk-scripts-cf1e2193adbc57d79d9e30271364117f2fc3ef2f.tar.gz
vk-scripts-cf1e2193adbc57d79d9e30271364117f2fc3ef2f.zip
test: actually fail when supposed to
Diffstat (limited to 'test')
-rw-r--r--test/tst-sessions.sh5
1 files changed, 4 insertions, 1 deletions
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