From 392e07d28a23aec9942b9ed0d122e35d2d268fb9 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Mon, 4 Mar 2013 21:58:49 +0000 Subject: 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 --- tests/t0106-diff.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/t0106-diff.sh') 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 -- cgit v1.2.3-59-g8ed1b