Merge branch 'mh/test-keep-prove-cache'
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 May 2012 19:08:21 +0000 (12:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 May 2012 19:08:21 +0000 (12:08 -0700)
By Michael Haggerty
* mh/test-keep-prove-cache:
t/Makefile: retain cache t/.prove across prove runs

t/Makefile
index 6091211f1009679aee741f3f6c2b290033aa5dc6..88e289fc8b790bad258fb29711e8dac675c7c3e9 100644 (file)
@@ -28,7 +28,7 @@ test: pre-clean $(TEST_LINT)
 
 prove: pre-clean $(TEST_LINT)
        @echo "*** prove ***"; GIT_CONFIG=.git/config $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
-       $(MAKE) clean
+       $(MAKE) clean-except-prove-cache
 
 $(T):
        @echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
@@ -36,9 +36,11 @@ $(T):
 pre-clean:
        $(RM) -r test-results
 
-clean:
+clean-except-prove-cache:
        $(RM) -r 'trash directory'.* test-results
        $(RM) -r valgrind/bin
+
+clean: clean-except-prove-cache
        $(RM) .prove
 
 test-lint: test-lint-duplicates test-lint-executable