mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
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>
This commit is contained in:
parent
78a24e5c55
commit
392e07d28a
8 changed files with 55 additions and 55 deletions
|
@ -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
|
||||
'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue