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

Re: [PATCHv3] send-email: Ask if a patch should be sent twice

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jul 30, 2019, 21:10 UTC
Message-ID
<20190730211012.GS20404@szeder.dev>
In-Reply-To
<20190730203327.30958-1-dima@arista.com>
On Tue, Jul 30, 2019 at 09:33:27PM +0100, Dmitry Safonov wrote:
Show 15 quoted lines
> @@ -589,6 +591,19 @@ test_expect_success $PREREQ 'In-Reply-To with --chain-reply-to' '
>  	test_cmp expect actual
>  '
>  
> +test_expect_success $PREREQ 'ask confirmation for double-send' '
> +	clean_fake_sendmail &&
> +	echo y | \
> +		GIT_SEND_EMAIL_NOTTY=1 \
> +		git send-email --from=author@example.com \
> +			--to=nobody@example.com \
> +			--smtp-server="$(pwd)/fake.sendmail" \
> +			--validate \
> +			$patches $patches $patches \
> +			>stdout &&
> +	! test_i18ngrep "Patches specified several times: " stdout

You should write this as 'test_i18ngrep ! <...>'. When running the test with GIT_TEST_GETTEXT_POISON=true, then 'test_i18ngrep' is basically a noop and always returns with success, the leading ! would turn that into a failure, which then would fail the test.

Sorry for not being specific enough.
Previous: Dmitry SafonovNext: Dmitry Safonov
Message 2 of 7 in “[PATCHv3] send-email: Ask if a patch should be sent twice”
  1. Dmitry SafonovJul 30, 2019
  2. SZEDER GáborJul 30, 2019
  3. Dmitry SafonovJul 30, 2019
  4. Junio C HamanoJul 30, 2019
  5. Andrey VaginJul 30, 2019
  6. Jeff KingJul 31, 2019
  7. Dmitry SafonovJul 30, 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.