diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-14 19:47:36 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-14 19:51:41 +0500 |
| commit | cf1e2193adbc57d79d9e30271364117f2fc3ef2f (patch) | |
| tree | a7d395ddb35ee4f03cfdaadec1319978113bbbcc /test | |
| parent | test: upgrade test-harness (diff) | |
| download | vk-scripts-cf1e2193adbc57d79d9e30271364117f2fc3ef2f.tar.gz vk-scripts-cf1e2193adbc57d79d9e30271364117f2fc3ef2f.zip | |
test: actually fail when supposed to
Diffstat (limited to 'test')
| -rw-r--r-- | test/tst-sessions.sh | 5 |
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 |
