diff options
author | John Keeping <john@keeping.me.uk> | 2013-03-05 06:58:49 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-03-05 09:38:44 (JST) |
commit | 392e07d28a23aec9942b9ed0d122e35d2d268fb9 (patch) | |
tree | 352b722bec1a02b47aa86f9285043982cfe70fbc /tests/t0107-snapshot.sh | |
parent | 78a24e5c55ac57efab90cf1e65b9af226b388a39 (diff) | |
download | cgit-392e07d28a23aec9942b9ed0d122e35d2d268fb9.zip cgit-392e07d28a23aec9942b9ed0d122e35d2d268fb9.tar.gz |
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 'tests/t0107-snapshot.sh')
-rwxr-xr-x | tests/t0107-snapshot.sh | 6 |
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' ' | |||
10 | 10 | ||
11 | run_test 'check html headers' ' | 11 | run_test 'check html headers' ' |
12 | head -n 1 trash/tmp | | 12 | head -n 1 trash/tmp | |
13 | grep -e "Content-Type: application/x-gzip" && | 13 | grep "Content-Type: application/x-gzip" && |
14 | 14 | ||
15 | head -n 2 trash/tmp | | 15 | head -n 2 trash/tmp | |
16 | grep -e "Content-Disposition: inline; filename=.master.tar.gz." | 16 | grep "Content-Disposition: inline; filename=.master.tar.gz." |
17 | ' | 17 | ' |
18 | 18 | ||
19 | run_test 'strip off the header lines' ' | 19 | run_test 'strip off the header lines' ' |
@@ -32,7 +32,7 @@ run_test 'count files' ' | |||
32 | ' | 32 | ' |
33 | 33 | ||
34 | run_test 'verify untarred file-5' ' | 34 | run_test 'verify untarred file-5' ' |
35 | grep -e "^5$" trash/master/file-5 && | 35 | grep "^5$" trash/master/file-5 && |
36 | test $(cat trash/master/file-5 | wc -l) = 1 | 36 | test $(cat trash/master/file-5 | wc -l) = 1 |
37 | ' | 37 | ' |
38 | 38 | ||