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

Re: [PATCH v2 2/2] t/t6300: drop magic filtering

From
Kousik Sanagavarapu <five231003@gmail.com>
Date
Aug 23, 2023, 13:20 UTC
Message-ID
<ZOYHjwOFdFGjFm1W@five231003>
In-Reply-To
<20230823065300.21961-1-list@eworm.de>
On Wed, Aug 23, 2023 at 08:52:17AM +0200, Christian Hesse wrote:
> From: Christian Hesse <mail@eworm.de>
> 
> Now that we ran a trustdb check forcibly it does no longer pollute the
> output. Filtering is no longer required...
s/forcibly/forcibly, 
s/it does no longer pollute/it no longer pollutes
Also, maybe instead of "... the output.",
	"...the output when we encounter a signature check and hence filtering is no
	longer required."
or along similar lines.
Show 23 quoted lines
> Signed-off-by: Christian Hesse <mail@eworm.de>
> ---
>  t/t6300-for-each-ref.sh | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
> index 5b434ab451..aa3c7c03c4 100755
> --- a/t/t6300-for-each-ref.sh
> +++ b/t/t6300-for-each-ref.sh
> @@ -1763,10 +1763,7 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' '
>  '
>  
>  test_expect_success GPG2 'bare signature atom' '
> -	git verify-commit first-signed 2>out.raw &&
> -	grep -Ev "checking the trustdb|PGP trust model" out.raw >out &&
> -	head -3 out >expect &&
> -	tail -1 out >>expect &&
> +	git verify-commit first-signed 2>expect &&
>  	echo  >>expect &&
>  	git for-each-ref refs/tags/first-signed \
>  		--format="%(signature)" >actual &&
> -- 
> 2.42.0

The code looks really clean now, wow. Although I'm curious why both the changes weren't in a single commit. Is it because 1/2 is applicable generally and not only to this specific test?

Thanks
Previous: Christian HesseNext: Junio C Hamano
Message 10 of 13 in “Re: [PATCH 1/1] t6300: fix match with insecure memory”
  1. Christian HesseAug 21, 2023
  2. 1/1 t6300: fix match with insecure memoryChristian Hesse, Aug 21, 2023
  3. Kousik SanagavarapuAug 22, 2023
  4. Christian HesseAug 22, 2023
  5. Christian HesseAug 22, 2023
  6. 1/2 t/lib-gpg: forcibly run a trustdb updateChristian Hesse, Aug 22, 2023
  7. 2/2 t/t6300: drop magic filteringChristian Hesse, Aug 22, 2023
  8. Eric SunshineAug 22, 2023
  9. 2/2 t/t6300: drop magic filteringChristian Hesse, Aug 23, 2023
  10. Kousik SanagavarapuAug 23, 2023
  11. Junio C HamanoAug 23, 2023
  12. Junio C HamanoAug 23, 2023
  13. Junio C HamanoAug 22, 2023

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.