aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-08-25 17:23:42 -0500
committerRob Landley <rob@landley.net>2020-08-25 17:23:42 -0500
commit314917a5c522a463d45a007702cf29a39f4028b4 (patch)
tree52951020c1b4a85de9f522d200a811befe7110bf /tests
parent9239b1aa282485a180d09bae6e85d73a630e71c8 (diff)
downloadtoybox-314917a5c522a463d45a007702cf29a39f4028b4.tar.gz
simplify
Diffstat (limited to 'tests')
-rw-r--r--tests/tar.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/tar.test b/tests/tar.test
index 168f4a38..dbe28d78 100644
--- a/tests/tar.test
+++ b/tests/tar.test
@@ -162,9 +162,8 @@ testing "manually specify bz2" 'LST -jf "$FILES"/tar/tar.tbz2' \
"" ""
# -I
-testing "-I gzip c" \
- "$TAR -Igzip file | file - | grep -q 'gzip compressed' && echo okay" \
- "okay\n" "" ""
+testing "-I gzip c" "$TAR -Igzip file | file - | grep -o 'gzip compressed'" \
+ "gzip compressed\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" \
"" ""