t9003: become resilient to GETTEXT_POISON

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 <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Jun 17, 2016 at 20:21 UTC f9b32424dcba5df7653f0dc9a45bdd135de416aa
1 file changed +2 -2
t/t9003-help-autocorrect.sh
+2 -2
@@ -31,10 +31,10 @@ test_expect_success 'autocorrect showing candidates' '
31 git config help.autocorrect 0 &&
32
33 test_must_fail git lfg 2>actual &&
34 - sed -e "1,/^Did you mean this/d" actual | grep lgf &&
34 + grep "^ lgf" actual &&
35
36 test_must_fail git distimdist 2>actual &&
37 - sed -e "1,/^Did you mean this/d" actual | grep distimdistim
37 + grep "^ distimdistim" actual
38 '
39
40 test_expect_success 'autocorrect running commands' '