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

Re: [PATCH] t5801: properly test the test shell

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 26, 2013, 18:33 UTC
Message-ID
<7vzjwlw38p.fsf@alter.siamese.dyndns.org>
In-Reply-To
<517A4F05.5030609@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 6 quoted lines
>> It is a separate issue to port git-remote-testgit to POSIX (J6t
>> already has a two part draft), move it to git-remote-testgit.sh, and
>> get its shebang line preprocessed like all other shell scripts.  I
>> think it is worth doing.
>> 
>> Takers?
By the way, this hint still stands ;-)
Show 23 quoted lines
>> 
>>  t/t5801-remote-helpers.sh | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>> 
>> diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
>> index 4dcf744..c956abd 100755
>> --- a/t/t5801-remote-helpers.sh
>> +++ b/t/t5801-remote-helpers.sh
>> @@ -118,7 +118,9 @@ test_expect_success 'pushing without refspecs' '
>>  	(cd local2 &&
>>  	echo content >>file &&
>>  	git commit -a -m ten &&
>> -	GIT_REMOTE_TESTGIT_REFSPEC="" test_must_fail git push 2>../error) &&
>> +	GIT_REMOTE_TESTGIT_REFSPEC="" &&
>> +	export GIT_REMOTE_TESTGIT_REFSPEC &&
>> +	test_must_fail git push 2>../error) &&
>>  	grep "remote-helper doesn.t support push; refspec needed" error
>>  '
>>  
>> 
>
> Perfect, I just failed to notice that the subshell would make the export
> local to that test.
Good.
I think I queued the fix near the tip of that topic yesterday.
Previous: Michael J Gruber
Message 11 of 11 in “t5801: properly test the test shell”
  1. t5801: properly test the test shellMichael J Gruber, Apr 25, 2013
  2. Johannes SixtApr 25, 2013
  3. Michael J GruberApr 25, 2013
  4. Johannes SixtApr 25, 2013
  5. Junio C HamanoApr 25, 2013
  6. Torsten BögershausenApr 25, 2013
  7. Junio C HamanoApr 25, 2013
  8. Junio C HamanoApr 25, 2013
  9. Junio C HamanoApr 25, 2013
  10. Michael J GruberApr 26, 2013
  11. Junio C HamanoApr 26, 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.