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

Re: [PATCH] t6300-for-each-ref: fix "more than one quoting style" tests

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Feb 15, 2018, 17:41 UTC
Message-ID
<CAM0VKjmW6_3z49uVMFUpwsK5khZ_bNALDgkKkPUQdvu2PEogfQ@mail.gmail.com>
In-Reply-To
<20180215165218.GA7635@sigill.intra.peff.net>
On Thu, Feb 15, 2018 at 5:52 PM, Jeff King <peff@peff.net> wrote:
Show 23 quoted lines
> On Thu, Feb 15, 2018 at 05:39:28PM +0100, SZEDER Gábor wrote:
>
>> On Tue, Feb 13, 2018 at 11:22 PM, Jeff King <peff@peff.net> wrote:
>>
>> >>  for i in "--perl --shell" "-s --python" "--python --tcl" "--tcl --perl"; do
>> >>       test_expect_success "more than one quoting style: $i" "
>> >> -             git for-each-ref $i 2>&1 | (read line &&
>> >> -             case \$line in
>> >> -             \"error: more than one quoting style\"*) : happy;;
>> >> -             *) false
>> >> -             esac)
>> >> +             test_must_fail git for-each-ref $i 2>err &&
>> >> +             grep '^error: more than one quoting style' err
>> >
>> > I suspect in the long run this ought to be test_i18ngrep, but since it's
>> > not localized yet, it makes sense to stop here with this patch.
>>
>> I thought 'git for-each-ref' is plumbing and that means that it
>> shouldn't be localized.
>
> I always assumed stderr was mostly fair game, even for plumbing. At any
> rate, I'm willing to ignore the issue until somebody actually proposes a
> patch to translate it.
Ah, OK, will keep that in mind.

Anyway, the first GETTEXT_POISON build will fail if that error string ever gets translated but the test doesn't get updated.

Previous: Jeff King
Message 5 of 5 in “t6300-for-each-ref: fix "more than one quoting style" tests”
  1. t6300-for-each-ref: fix "more than one quoting style" testsSZEDER Gábor, Feb 13, 2018
  2. Jeff KingFeb 13, 2018
  3. SZEDER GáborFeb 15, 2018
  4. Jeff KingFeb 15, 2018
  5. SZEDER GáborFeb 15, 2018

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.