Make prove_installcheck remove the old log directory, if any.
authorNoah Misch
Mon, 12 Oct 2015 00:36:07 +0000 (20:36 -0400)
committerNoah Misch
Mon, 12 Oct 2015 00:36:23 +0000 (20:36 -0400)
prove_check already has been doing this.  Back-patch to 9.4, like the
commit that introduced this logging.

src/Makefile.global.in

index 13755148b55a18930e1c0985d96300c47cc9ee46..3a0f0b9a27f5c52281023fe9b007cd965f6d0052 100644 (file)
@@ -351,6 +351,7 @@ endef
 ifeq ($(enable_tap_tests),yes)
 
 define prove_installcheck
+rm -rf $(CURDIR)/tmp_check/log
 cd $(srcdir) && TESTDIR='$(CURDIR)' PATH="$(bindir):$$PATH" PGPORT='6$(DEF_PGPORT)' top_builddir='$(CURDIR)/$(top_builddir)' $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) t/*.pl
 endef