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

Re: [RFC/PATCH] t3300-*.sh: Fix a TAP parse error

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Jul 25, 2012, 18:36 UTC
Message-ID
<50103CA6.4050901@ramsay1.demon.co.uk>
In-Reply-To
<20120724192103.GB5210@burratino>
Jonathan Nieder wrote:
Show 26 quoted lines
> [...]
>> No, I don't think this would be a good direction to go in. This may
>> not be a good idea either, but if you wanted to add a check here, then
>> maybe something like this (totally untested):
>>
>> diff --git a/t/test-lib.sh b/t/test-lib.sh
>> index acda33d..53a2422 100644
>> --- a/t/test-lib.sh
>> +++ b/t/test-lib.sh
>> @@ -354,6 +354,9 @@ test_done () {
>>  	case "$test_failure" in
>>  	0)
>>  		# Maybe print SKIP message
>> +		if test -n "$skip_all" && test $test_count -gt 0; then
>> +			error "Can't use skip_all after running some tests"
>> +		fi
>>  		[ -z "$skip_all" ] || skip_all=" # SKIP $skip_all"
>>  
>>  		if test $test_external_has_tap -eq 0; then
> 
> I think preventing invalid TAP output like this would be a very good
> thing!  As a start, this patchlet looks good to me, and then I guess
> we'll have to think more about what happens when a person wants to
> skip_all_remaining after a test has already been run.
> 
> Care to format it as a "git am"-able patch, or should I?
Yes, I will happily create a proper (tested) patch and send it to the list.

However, given that we are now in the RC period, I probably won't get to it immediately; I need to set aside *at least* one full evening to running the testsuite on cygwin! ;-)

ATB, Ramsay Jones

Previous: Jonathan NiederNext: Junio C Hamano
Message 5 of 13 in “t3300-*.sh: Fix a TAP parse error”
  1. t3300-*.sh: Fix a TAP parse errorRamsay Jones, Jul 21, 2012
  2. Jonathan NiederJul 21, 2012
  3. Ramsay JonesJul 24, 2012
  4. Jonathan NiederJul 24, 2012
  5. Ramsay JonesJul 25, 2012
  6. Junio C HamanoJul 24, 2012
  7. Ramsay JonesJul 25, 2012
  8. Jonathan NiederJul 25, 2012
  9. Junio C HamanoJul 25, 2012
  10. Ramsay JonesJul 28, 2012
  11. Ramsay JonesJul 28, 2012
  12. Junio C HamanoAug 16, 2012
  13. Ramsay JonesAug 19, 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.