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

Re: [PATCH 1/1] tests: Allow customization of how say_color() prints

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 18, 2012, 01:42 UTC
Message-ID
<7v38z4jfuh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<50CF9D4C.9080706@ramsay1.demon.co.uk>
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
Show 7 quoted lines
> Junio C Hamano wrote:
> ...
>> Why does your printf die in the first place???
>
> I really don't know. ...
>
> Sorry for wasting your time.

Not a waste. I was hoping somebody (not necessarily you) may be able to come up with a cleaner solution. Unfortunately it hasn't happened (yet), but discussing issues on the list is often not a waste.

We could introduce git_test_print and git_test_println shell functions that default to the current "printf", and let the users override these by including a custom scriptllet from t/test-lib.sh, or something.

Previous: Ramsay Jones
Message 4 of 4 in “tests: Allow customization of how say_color() prints”
  1. 1/1 tests: Allow customization of how say_color() printsRamsay Jones, Dec 15, 2012
  2. Junio C HamanoDec 16, 2012
  3. Ramsay JonesDec 17, 2012
  4. Junio C HamanoDec 18, 2012

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.