make/testing_flags: delete log files before running itests, print date

This commit makes sure old log files are deleted before running the
integration tests. Previously new logs would be added to the existing
ones, causing a big mess. This was especially messy during flake
hunting, as all logs would be kept.

In addition, we now print the date before every start of the integration
tests, which is useful to see how long they have been running, for
instance in case of a deadlock.
This commit is contained in:
Johan T. Halseth 2018-05-09 10:02:30 +02:00
parent bc22fc9b63
commit 2313eb2c7b
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -44,4 +44,4 @@ endif
# Construct the integration test command with the added build flags.
ITEST_TAGS := $(TEST_TAGS) rpctest
ITEST := $(GOTEST) -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput
ITEST := rm output*.log; date; $(GOTEST) -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput