Skip to content

Commit 60f26f6

Browse files
mhaggergitster
authored andcommitted
t/Makefile: retain cache t/.prove across prove runs
prove(1) can write a summary of its test results and timings into a cache file, t/.prove, then use this information during later runs for various purposes. But deleting t/.prove after every test run defeats this purpose. So do not delete t/.prove as part of "make DEFAILT_TEST_TARGET=prove test". (Continue to delete the file on "make clean".) Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e8dde3e commit 60f26f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ test: pre-clean $(TEST_LINT)
2828

2929
prove: pre-clean $(TEST_LINT)
3030
@echo "*** prove ***"; GIT_CONFIG=.git/config $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
31-
$(MAKE) clean
31+
$(MAKE) clean-except-prove-cache
3232

3333
$(T):
3434
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
3535

3636
pre-clean:
3737
$(RM) -r test-results
3838

39-
clean:
39+
clean-except-prove-cache:
4040
$(RM) -r 'trash directory'.* test-results
4141
$(RM) -r valgrind/bin
42+
43+
clean: clean-except-prove-cache
4244
$(RM) .prove
4345

4446
test-lint: test-lint-duplicates test-lint-executable

0 commit comments

Comments
 (0)