From 9239b1aa282485a180d09bae6e85d73a630e71c8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Aug 2020 10:04:49 -0700 Subject: tar.test: fix the -Igzip test to work with toybox file. GNU says "/dev/stdin" for the filename, but we say "-". --- tests/tar.test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/tar.test b/tests/tar.test index 0a91bac8..168f4a38 100644 --- a/tests/tar.test +++ b/tests/tar.test @@ -162,8 +162,9 @@ testing "manually specify bz2" 'LST -jf "$FILES"/tar/tar.tbz2' \ "" "" # -I -testing "-I gzip c" "$TAR -Igzip file | file -" \ - "/dev/stdin: gzip compressed data, from Unix\n" "" "" +testing "-I gzip c" \ + "$TAR -Igzip file | file - | grep -q 'gzip compressed' && echo okay" \ + "okay\n" "" "" testing "-I gzip t" 'LST -Igzip -f "$FILES"/tar/tar.tgz' \ "drwxr-x--- enh/eng 0 2017-05-13 01:05 dir/\n-rw-r----- enh/eng 12 2017-05-13 01:05 dir/file\n" \ "" "" -- cgit v1.2.3