summaryrefslogtreecommitdiff
path: root/t/t9003-help-autocorrect.sh
diff options
context:
space:
mode:
authorVasco Almeida <vascomalmeida@sapo.pt>2016-06-17 20:21:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-17 22:45:48 (GMT)
commitf9b32424dcba5df7653f0dc9a45bdd135de416aa (patch)
treedaa64447c22e5a75225020d615eade67c4e41a65 /t/t9003-help-autocorrect.sh
parente5c1272c07eb5b70e2f785ff715a800f0e3f456e (diff)
downloadgit-f9b32424dcba5df7653f0dc9a45bdd135de416aa.zip
git-f9b32424dcba5df7653f0dc9a45bdd135de416aa.tar.gz
git-f9b32424dcba5df7653f0dc9a45bdd135de416aa.tar.bz2
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>
Diffstat (limited to 't/t9003-help-autocorrect.sh')
-rwxr-xr-xt/t9003-help-autocorrect.sh4
1 files 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' '