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

Re: [PATCH/RFC] t9500-*.sh: Fix highlight test hang on Linux Mint

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 7, 2013, 16:23 UTC
Message-ID
<xmqqmwnovbwm.fsf@gitster.dls.corp.google.com>
In-Reply-To
<522A51A5.9090905@ramsay1.demon.co.uk>
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
> In order to allow the user to specify the correct tool, introduce
> the GIT_TEST_HIGHLIGHT_BIN variable. Also, add '</dev/null' to the
> command line of the highlight invocation; this avoids hanging the
> test if the filter script is used nonetheless.

gitweb/Makefile seems to have a rule to set this to a custom location, though. Why do we need a special test-only location? If the user wants the right one during the test, wouldn't the final build and install also want to use the same "right one" that is not just a generic 'highlight' that does not say which path it resides at?

So I think forcing the testers to say the same thing twice like this patch does is a good way forward. Add a mechanism to allow outside world to ask which "highlight" gitweb/Makefile was told to use, use that mechanism to learn the value of HIGHLIGHT_BIN to check if the binary is usable for the test, or something perhaps?

The killing of the input is independently a good idea, I think.
Previous: Ramsay Jones
Message 2 of 2 in “t9500-*.sh: Fix highlight test hang on Linux Mint”
  1. t9500-*.sh: Fix highlight test hang on Linux MintRamsay Jones, Sep 6, 2013
  2. Junio C HamanoSep 7, 2013

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.