From: Vasco Almeida Date: Mon, 23 May 2016 19:27:39 GMT Subject: [PATCH v2 20/22] t9003: become resilient to GETTEXT_POISON Message-ID: <1464031661-18988-21-git-send-email-vascomalmeida@sapo.pt> In-Reply-To: <1464031661-18988-1-git-send-email-vascomalmeida@sapo.pt> The test t9003-help-autocorrect.sh fails when run under GETTEXT_POISON, because it's expecting to filter out the original output. Accommodate gettext poison case by also filtering out the default simulated output. Signed-off-by: Vasco Almeida --- That is a TAB between '^' and 'l' and likewise to the next instance. t/t9003-help-autocorrect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t9003-help-autocorrect.sh b/t/t9003-help-autocorrect.sh index dfe95c9..b1c7919 100755 --- a/t/t9003-help-autocorrect.sh +++ b/t/t9003-help-autocorrect.sh @@ -31,10 +31,10 @@ test_expect_success 'autocorrect showing candidates' ' git config help.autocorrect 0 && test_must_fail git lfg 2>actual && - sed -e "1,/^Did you mean this/d" actual | grep lgf && + grep "^ lgf" actual && test_must_fail git distimdist 2>actual && - sed -e "1,/^Did you mean this/d" actual | grep distimdistim + grep "^ distimdistim" actual ' test_expect_success 'autocorrect running commands' ' -- 2.7.3