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

Re: Build broken for contrib/remote-helpers...

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2013, 22:22 UTC
Message-ID
<7vehhcn9i9.fsf@alter.siamese.dyndns.org>
In-Reply-To
<50FEFCD7.2060402@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 6 quoted lines
>> So it finds whatever is before the first "-", which would be the test
>> number in "t0000-basic.sh" or similar, and then looks for duplicates.
>
> would it help to filter for numbered tests before sorting like this:
>
> sed 's/-.*//' | grep "[0-9][0-9][0-9][0-9]"| sort | uniq -d

If you are using sed you do not need grep. Just do that in a single process, perhaps like

	sed -ne 's|\(.*/\)*t\([0-9][0-9][0-9][0-9]\)-.*|\2|p'

But more importantly, what do we want "duplicate numbers" sanity check to mean in this context? Is this other directory allowed to have a numbered test that shares the same number as the main test suite? Is uniqueness inside the contrib/remote-helpers/ directory sufficient?

Do we envision that perhaps someday the contrib material becomes mature enough and will want to migrate to the main part of the tree? If that is the case, perhaps should the check complain that these tests are not numbered, instead of ignoring?

Previous: Torsten Bögershausen
Message 4 of 4 in “Build broken for contrib/remote-helpers...”
  1. John SzakmeisterJan 22, 2013
  2. Jeff KingJan 22, 2013
  3. Torsten BögershausenJan 22, 2013
  4. Junio C HamanoJan 22, 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.