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

Re: [PATCH] test: use test_must_be_empty F instead of test_cmp empty F

From
René Scharfe <l.s.r@web.de>
Date
Nov 27, 2019, 07:51 UTC
Message-ID
<8dc0b50d-4e41-bc79-33a1-7e2a1ef7aa0b@web.de>
In-Reply-To
<20191126200239.GA36748@generichostname>
Am 26.11.19 um 21:02 schrieb Denton Liu:
Show 22 quoted lines
>> diff --git a/t/t9010-svn-fe.sh b/t/t9010-svn-fe.sh
>> index 0b20b07e68..3a3d8d3bd5 100755
>> --- a/t/t9010-svn-fe.sh
>> +++ b/t/t9010-svn-fe.sh
>> @@ -53,9 +53,7 @@ text_no_props () {
>>  	printf "%s\n" "$text"
>>  }
>>
>> ->empty
>> -
>> -test_expect_success 'empty dump' '
>> +test_expect_success PIPE 'empty dump' '
>
> How come we need the PIPE prereq here? At the top of this file, we have
>
> 	if test_have_prereq !PIPE
> 	then
> 		skip_all="svn dumpfile importer testing requires the PIPE prerequisite"
> 		test_done
> 	fi
>
> which should guarantee PIPE at this point already.

Right, we haven't needed it since 7236a34c98 (t9010-*.sh: skip all tests if the PIPE prereq is missing, 2017-09-17). Thanks for catching this!

My patch had been gathering dust here already before that time, and sometime along the way I did a sloppy rebase. Didn't see it before sending because I was focusing on "can we remove the empty file?". O_o

René
Previous: Denton LiuNext: René Scharfe
Message 3 of 4 in “test: use test_must_be_empty F instead of test_cmp empty F”
  1. test: use test_must_be_empty F instead of test_cmp empty FRené Scharfe, Nov 26, 2019
  2. Denton LiuNov 26, 2019
  3. René ScharfeNov 27, 2019
  4. test: use test_must_be_empty F instead of test_cmp empty FRené Scharfe, Nov 27, 2019

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.