commit 5<" trash/tmp
'
-run_test 'find commit msg' 'grep -e "
" trash/tmp'
-run_test 'find diffstat' 'grep -e "
" trash/tmp'
+run_test 'find commit msg' 'grep "" trash/tmp'
+run_test 'find diffstat' 'grep "" trash/tmp'
run_test 'find diff summary' '
- grep -e "1 files changed, 1 insertions, 0 deletions" trash/tmp
+ grep "1 files changed, 1 insertions, 0 deletions" trash/tmp
'
run_test 'get root commit' '
@@ -31,7 +31,7 @@ run_test 'root commit contains diffstat' '
run_test 'root commit contains diff' '
grep ">diff --git a/file-1 b/file-1<" trash/tmp &&
- grep -e "+1
" trash/tmp
+ grep "+1
" trash/tmp
'
tests_done
diff --git a/tests/t0106-diff.sh b/tests/t0106-diff.sh
index e140bcc..eee0c8c 100755
--- a/tests/t0106-diff.sh
+++ b/tests/t0106-diff.sh
@@ -5,16 +5,16 @@
prepare_tests "Check content on diff page"
run_test 'generate foo/diff' 'cgit_url "foo/diff" >trash/tmp'
-run_test 'find diff header' 'grep -e "a/file-5 b/file-5" trash/tmp'
-run_test 'find blob link' 'grep -e "@@ -0,0 +1 @@" trash/tmp
+ grep "@@ -0,0 +1 @@
" trash/tmp
'
run_test 'find added line' '
- grep -e "+5
" trash/tmp
+ grep "+5
" trash/tmp
'
tests_done
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
'
diff --git a/tests/t0108-patch.sh b/tests/t0108-patch.sh
index 6ee70b3..f15c893 100755
--- a/tests/t0108-patch.sh
+++ b/tests/t0108-patch.sh
@@ -9,19 +9,19 @@ run_test 'generate foo/patch' '
'
run_test 'find `From:` line' '
- grep -e "^From: " trash/tmp
+ grep "^From: " trash/tmp
'
run_test 'find `Date:` line' '
- grep -e "^Date: " trash/tmp
+ grep "^Date: " trash/tmp
'
run_test 'find `Subject:` line' '
- grep -e "^Subject: commit 5" trash/tmp
+ grep "^Subject: commit 5" trash/tmp
'
run_test 'find `cgit` signature' '
- tail -1 trash/tmp | grep -e "^cgit"
+ tail -1 trash/tmp | grep "^cgit"
'
run_test 'find initial commit' '
@@ -33,7 +33,7 @@ run_test 'generate patch for initial commit' '
'
run_test 'find `cgit` signature' '
- tail -1 trash/tmp | grep -e "^cgit"
+ tail -1 trash/tmp | grep "^cgit"
'
tests_done