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

Re: [PATCH v4] t/Makefile: add a rule to re-run previously-failed tests

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 27, 2017, 18:53 UTC
Message-ID
<xmqq4m0kz65d.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<0563f07117e828c072ba542c1a57441e2e8efb81.1485537593.git.johannes.schindelin@gmx.de>
Johannes Schindelin <johannes.schindelin@gmx.de> writes:
Show 5 quoted lines
> This patch automates the process of determining which tests failed
> previously and re-running them.
> ...
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

I stored both versions in files and compared them, and it seems the single word change in the proposed commit log message is the only difference. I would have written "Automate the process...", though.

If you are resending, touching up to cover all points raised by a reviewer and doing nothing else, having "Reviewed-by: Jeff King <peff@peff.net>" would have been nicer.

Will queue.  Thanks.
Show 26 quoted lines
> ---
> Published-As: https://github.com/dscho/git/releases/tag/failing-tests-v4
> Fetch-It-Via: git fetch https://github.com/dscho/git failing-tests-v4
>
>  t/Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/t/Makefile b/t/Makefile
> index d613935f14..1bb06c36f2 100644
> --- a/t/Makefile
> +++ b/t/Makefile
> @@ -35,6 +35,12 @@ all: $(DEFAULT_TEST_TARGET)
>  test: pre-clean $(TEST_LINT)
>  	$(MAKE) aggregate-results-and-cleanup
>  
> +failed:
> +	@failed=$$(cd '$(TEST_RESULTS_DIRECTORY_SQ)' && \
> +		grep -l '^failed [1-9]' *.counts | \
> +		sed -n 's/\.counts$$/.sh/p') && \
> +	test -z "$$failed" || $(MAKE) $$failed
> +
>  prove: pre-clean $(TEST_LINT)
>  	@echo "*** prove ***"; $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
>  	$(MAKE) clean-except-prove-cache
>
> base-commit: 4e59582ff70d299f5a88449891e78d15b4b3fabe
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 31 of 32 in “t/Makefile: add a rule to re-run previously-failed tests”
  1. t/Makefile: add a rule to re-run previously-failed testsJohannes Schindelin, Jun 29, 2016
  2. Junio C HamanoJun 29, 2016
  3. Johannes SchindelinJul 1, 2016
  4. Jeff KingJun 30, 2016
  5. Johannes SchindelinJul 1, 2016
  6. t/Makefile: add a rule to re-run previously-failed testsJohannes Schindelin, Aug 29, 2016
  7. Jeff KingAug 30, 2016
  8. Junio C HamanoAug 30, 2016
  9. Johannes SchindelinAug 31, 2016
  10. Sverre RabbelierSep 1, 2016
  11. Johannes SchindelinSep 1, 2016
  12. Sverre RabbelierSep 1, 2016
  13. Junio C HamanoSep 1, 2016
  14. Johannes SchindelinSep 2, 2016
  15. Junio C HamanoSep 8, 2016
  16. Ævar Arnfjörð BjarmasonAug 30, 2016
  17. Jeff KingAug 30, 2016
  18. Ævar Arnfjörð BjarmasonAug 30, 2016
  19. Johannes SchindelinAug 31, 2016
  20. Ævar Arnfjörð BjarmasonAug 31, 2016
  21. Johannes SchindelinAug 31, 2016
  22. Ævar Arnfjörð BjarmasonSep 2, 2016
  23. Johannes SchindelinSep 2, 2016
  24. Matthieu MoySep 2, 2016
  25. Johannes SchindelinSep 4, 2016
  26. Matthieu MoySep 4, 2016
  27. t/Makefile: add a rule to re-run previously-failed testsJohannes Schindelin, Jan 27, 2017
  28. Jeff KingJan 27, 2017
  29. Johannes SchindelinJan 27, 2017
  30. t/Makefile: add a rule to re-run previously-failed testsJohannes Schindelin, Jan 27, 2017
  31. Junio C HamanoJan 27, 2017
  32. Johannes SchindelinJan 30, 2017

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.