about summary refs log tree commit diff
path: root/tests/t0107-snapshot.sh
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-03-04 21:58:49 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 19:38:44 -0500
commit392e07d28a23aec9942b9ed0d122e35d2d268fb9 (patch)
tree352b722bec1a02b47aa86f9285043982cfe70fbc /tests/t0107-snapshot.sh
parentMakefile: Disable gettext in the Git submodule (diff)
downloadcgit-pink-392e07d28a23aec9942b9ed0d122e35d2d268fb9.tar.gz
cgit-pink-392e07d28a23aec9942b9ed0d122e35d2d268fb9.zip
tests: "grep -e" is not portable to all platforms
The "-e" option to grep is not needed unless specifying more than one
pattern, which we don't do.  Remove it to avoid restricting the tests on
platforms that do not have a grep that recognises "-e".

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
-rwxr-xr-xtests/t0107-snapshot.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t0107-snapshot.sh b/tests/t0107-snapshot.sh
index 8ab4912..8ad9573 100755
--- a/tests/t0107-snapshot.sh
+++ b/tests/t0107-snapshot.sh
@@ -10,10 +10,10 @@ run_test 'get foo/snapshot/master.tar.gz' '
 
 run_test 'check html headers' '
 	head -n 1 trash/tmp |
-	     grep -e "Content-Type: application/x-gzip" &&
+	     grep "Content-Type: application/x-gzip" &&
 
 	head -n 2 trash/tmp |
-	     grep -e "Content-Disposition: inline; filename=.master.tar.gz."
+	     grep "Content-Disposition: inline; filename=.master.tar.gz."
 '
 
 run_test 'strip off the header lines' '
@@ -32,7 +32,7 @@ run_test 'count files' '
 '
 
 run_test 'verify untarred file-5' '
-	 grep -e "^5$" trash/master/file-5 &&
+	 grep "^5$" trash/master/file-5 &&
 	 test $(cat trash/master/file-5 | wc -l) = 1
 '