From: John Keeping Date: Sat, 23 Mar 2013 13:31:39 GMT Subject: [PATCH v2 1/3] t7800: don't hide grep output Message-ID: <49f774ea5b09afb97945f7f1ba93b5c01e2c3dcf.1364045138.git.john@keeping.me.uk> In-Reply-To: Remove the stdin_contains and stdin_doesnt_contain helper functions which add nothing but hide the output of grep, hurting debugging. Suggested-by: Johannes Sixt Signed-off-by: John Keeping --- t/t7800-difftool.sh | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index 3aab6e1..e694972 100755 --- a/t/t7800-difftool.sh +++ b/t/t7800-difftool.sh @@ -23,16 +23,6 @@ prompt_given () test "$prompt" = "Launch 'test-tool' [Y/n]: branch" } -stdin_contains () -{ - grep >/dev/null "$1" -} - -stdin_doesnot_contain () -{ - ! stdin_contains "$1" -} - # Create a file on master and change it on branch test_expect_success PERL 'setup' ' echo master >file && @@ -296,24 +286,24 @@ test_expect_success PERL 'setup with 2 files different' ' test_expect_success PERL 'say no to the first file' ' (echo n && echo) >input && git difftool -x cat branch output && - stdin_contains m2 input && git difftool -x cat branch output && - stdin_contains master output && - stdin_contains tool output && - stdin_contains sub output && - stdin_contains sub output && - stdin_contains sub output && - stdin_contains sub