diff options
author | Elliott Hughes <enh@google.com> | 2020-08-25 10:04:49 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-08-25 17:21:33 -0500 |
commit | 9239b1aa282485a180d09bae6e85d73a630e71c8 (patch) | |
tree | f7f3fe6781180d3be7a017786a4fb87e9762a261 /tests | |
parent | b9fa85fc5eb2e9484e000381154972b9bfef71eb (diff) | |
download | toybox-9239b1aa282485a180d09bae6e85d73a630e71c8.tar.gz |
tar.test: fix the -Igzip test to work with toybox file.
GNU says "/dev/stdin" for the filename, but we say "-".
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tar.test | 5 |
1 files 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" \ "" "" |