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

Re: [PATCH 1/2] t1509: correct i18n test

From
Junio C Hamano <gitster@pobox.com>
Date
May 13, 2020, 16:43 UTC
Message-ID
<xmqqd077vl9c.fsf@gitster.c.googlers.com>
In-Reply-To
<6675cb952771a48a50b46bcf577e363fcf5d7b3b.1589375923.git.congdanhqx@gmail.com>
Đoàn Trần Công Danh  <congdanhqx@gmail.com> writes:
Show 32 quoted lines
> git-init(1)'s messages is subjected to i18n.
> They should be tested by test_i18n* family.
>
> Fix them.
>
> Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
> ---
>  t/t1509-root-work-tree.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/t/t1509-root-work-tree.sh b/t/t1509-root-work-tree.sh
> index 553a3f601b..fd2f7abf1c 100755
> --- a/t/t1509-root-work-tree.sh
> +++ b/t/t1509-root-work-tree.sh
> @@ -221,7 +221,7 @@ test_expect_success 'setup' '
>  	rm -rf /.git &&
>  	echo "Initialized empty Git repository in /.git/" > expected &&
>  	git init > result &&
> -	test_cmp expected result
> +	test_i18ncmp expected result
>  '
>  
>  test_vars 'auto gitdir, root' ".git" "/" ""
> @@ -246,7 +246,7 @@ test_expect_success 'setup' '
>  	cd / &&
>  	echo "Initialized empty Git repository in /" > expected &&
>  	git init --bare > result &&
> -	test_cmp expected result
> +	test_i18ncmp expected result
>  '
>  
>  test_vars 'auto gitdir, root' "." "" ""

OK. It shows how rarely (if ever) this test script is actually exercised that we need fixes like these. Well done.

Thanks.
Previous: Đoàn Trần Công DanhNext: Đoàn Trần Công Danh
Message 3 of 8 in “CI: Enable t1509 on GitHub Actions and Travis”
  1. 0/2 CI: Enable t1509 on GitHub Actions and TravisĐoàn Trần Công Danh, May 13, 2020
  2. 1/2 t1509: correct i18n testĐoàn Trần Công Danh, May 13, 2020
  3. Junio C HamanoMay 13, 2020
  4. 2/2 CI: enable t1509 in Travis and GitHub ActionsĐoàn Trần Công Danh, May 13, 2020
  5. Junio C HamanoMay 13, 2020
  6. Đoàn Trần Công DanhMay 13, 2020
  7. Junio C HamanoMay 13, 2020
  8. Junio C HamanoMay 13, 2020

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.