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

Re: [PATCH v2] test-lib: unset trace2 parent envvars

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 27, 2022, 18:29 UTC
Message-ID
<xmqqlez12fsd.fsf@gitster.g>
In-Reply-To
<220127.86r18tdeve.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 18 quoted lines
>> diff --git a/t/test-lib.sh b/t/test-lib.sh
>> index 0f7a137c7d..faf25ba1b2 100644
>> --- a/t/test-lib.sh
>> +++ b/t/test-lib.sh
>> @@ -432,7 +432,7 @@ EDITOR=:
>>  unset VISUAL EMAIL LANGUAGE $("$PERL_PATH" -e '
>>  	my @env = keys %ENV;
>>  	my $ok = join("|", qw(
>> -		TRACE
>> +		TRACE	# Allow tracing in general, but see unsets below.
>
> I think it would be good to turn that -e into a -we, which would tell
> you why this doesn't work the way you think:
>
>     Possible attempt to put comments in qw() list at -e line 14.
>     Possible attempt to separate words with commas at -e line 14.
>
> I.e. you added one string "#" to the array, and a string "Allow" etc.

Having an expert who can spot these things at first glance is handy ;-). Very much appreciated.

In any case, the previous iteration has been in 'next' long enough without causing trouble for those who use a variant based on 'next' at $DAYJOB, I presume, so my recommendation is to just let it graduate first, and pursue your suggestion to do more things in this scriptlet (below, omitted) as a "further improvement" on top.

Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Josh Steadmon
Message 9 of 10 in “test-lib: unset trace2 parent envvars”
  1. test-lib: unset trace2 parent envvarsJosh Steadmon, Jan 14, 2022
  2. Junio C HamanoJan 14, 2022
  3. Josh SteadmonJan 18, 2022
  4. Junio C HamanoJan 18, 2022
  5. Josh SteadmonJan 26, 2022
  6. Taylor BlauJan 18, 2022
  7. test-lib: unset trace2 parent envvarsJosh Steadmon, Jan 26, 2022
  8. Ævar Arnfjörð BjarmasonJan 27, 2022
  9. Junio C HamanoJan 27, 2022
  10. Josh SteadmonFeb 1, 2022

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.