git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] t5520: become resilient to GETTEXT_POISON

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Aug 12, 2016, 11:59 UTC
Message-ID
<1471003142-1739-2-git-send-email-vascomalmeida@sapo.pt>
In-Reply-To
<1471003142-1739-1-git-send-email-vascomalmeida@sapo.pt>
Use test_i18ngrep function instead of grep for grepping strings.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 t/t5520-pull.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index 6ad37b5..5518445 100755
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
@@ -270,7 +270,7 @@ test_expect_success '--rebase with conflicts shows advice' '
 	test_tick &&
 	git commit -m "Create conflict" seq.txt &&
 	test_must_fail git pull --rebase . seq 2>err >out &&
-	grep "When you have resolved this problem" out
+	test_i18ngrep "When you have resolved this problem" out
 '
 
 test_expect_success 'failed --rebase shows advice' '
@@ -284,7 +284,7 @@ test_expect_success 'failed --rebase shows advice' '
 	git checkout -f -b fails-to-rebase HEAD^ &&
 	test_commit v2-without-cr file "2" file2-lf &&
 	test_must_fail git pull --rebase . diverging 2>err >out &&
-	grep "When you have resolved this problem" out
+	test_i18ngrep "When you have resolved this problem" out
 '
 
 test_expect_success '--rebase fails with multiple branches' '
-- 
2.7.4
Previous: Vasco AlmeidaNext: Vasco Almeida
Message 2 of 4 in “t3404: become resilient to GETTEXT_POISON”
  1. 1/3 t3404: become resilient to GETTEXT_POISONVasco Almeida, Aug 12, 2016
  2. 2/3 t5520: become resilient to GETTEXT_POISONVasco Almeida, Aug 12, 2016
  3. 3/3 t7411: become resilient to GETTEXT_POISONVasco Almeida, Aug 12, 2016
  4. Johannes SchindelinAug 17, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.