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

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

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 22, 2013, 20:55 UTC
Message-ID
<50FEFCD7.2060402@web.de>
In-Reply-To
<20130122194135.GA23521@sigill.intra.peff.net>
On 22.01.13 20:41, Jeff King wrote:
Show 24 quoted lines
> On Tue, Jan 22, 2013 at 12:49:31AM -0500, John Szakmeister wrote:
> 
>> I tried running make in contrib/remote-helpers and it died with:
>>
>>     :: make
>>     make -e -C ../../t test
>>     rm -f -r test-results
>>     duplicate test numbers: /Users/jszakmeister/sources/git
>>     make[1]: *** [test-lint-duplicates] Error 1
>>     make: *** [test] Error 2
>>
>> The path shown is not quite correct.  I have the sources extracted to
>> /Users/jszakmeister/sources/git-1.8.1.1.  It appears that the Makefile
>> in contrib/remote-helpers is exporting T, which is causing the
>> duplicate test detection to fail.
> 
> It has to set T, because that is how t/Makefile knows what the set of
> tests is. The problem is that test-lint-duplicates does not understand
> absolute pathnames, as its regex is too simplistic:
> 
>   sed 's/-.*//' | sort | uniq -d
> 
> 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
Previous: Jeff KingNext: Junio C Hamano
Message 3 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.