mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
Merge branch 'js/re-running-failed-tests'
"make -C t failed" will now run only the tests that failed in the previous run. This is usable only when prove is not use, and gives a useless error message when run after "make clean", but otherwise is serviceable. * js/re-running-failed-tests: t/Makefile: add a rule to re-run previously-failed tests
This commit is contained in:
commit
ecc486b1f8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue