Skip to content

Commit e3df89a

Browse files
dschogitster
authored andcommitted
tests: Clarify dependencies between tests, 'aggregate-results' and 'clean'
The Makefile targets 'aggregate-results' and 'clean' pretended to be independent. This is not true, of course, since aggregate-results needs the results _before_ they are removed. Likewise, the tests should have been run already when the results are to be aggregated. However, as it is legitimate to run only a few tests, and then aggregate just those results, so another target is introduced, that depends on all tests, then aggregates the results, and only then removes the results. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ff30fff commit e3df89a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
1414
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
1515
TSVN = $(wildcard t91[0-9][0-9]-*.sh)
1616

17-
all: pre-clean $(T) aggregate-results clean
17+
all: pre-clean
18+
$(MAKE) aggregate-results-and-cleanup
1819

1920
$(T):
2021
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
@@ -25,6 +26,10 @@ pre-clean:
2526
clean:
2627
$(RM) -r 'trash directory' test-results
2728

29+
aggregate-results-and-cleanup: $(T)
30+
$(MAKE) aggregate-results
31+
$(MAKE) clean
32+
2833
aggregate-results:
2934
'$(SHELL_PATH_SQ)' ./aggregate-results.sh test-results/t*-*
3035

0 commit comments

Comments
 (0)