GNU says "/dev/stdin" for the filename, but we say "-". --- tests/tar.test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
From bfac3a852689d504e7c329eb19c2009a876694d9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <e...@google.com> Date: Tue, 25 Aug 2020 10:04:49 -0700 Subject: [PATCH] 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(-) 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" \ "" "" -- 2.28.0.297.g1956fa8f8d-goog
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net