diff --git a/Makefile b/Makefile index 22d7b9d8..79d6abdc 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,8 @@ check: unit itest itest-only: @$(call print, "Running integration tests with ${backend} backend.") - $(ITEST) + rm -rf lntest/itest/*.log lntest/itest/.logs-*; date + scripts/itest_part.sh 0 1 $(TEST_FLAGS) $(ITEST_FLAGS) lntest/itest/log_check_errors.sh itest: btcd build-itest itest-only @@ -226,7 +227,7 @@ travis-cover: btcd unit-cover goveralls flakehunter: build-itest @$(call print, "Flake hunting ${backend} integration tests.") - while [ $$? -eq 0 ]; do $(ITEST); done + while [ $$? -eq 0 ]; do make itest-only icase='${icase}' backend='${backend}'; done flake-unit: @$(call print, "Flake hunting unit tests.") diff --git a/make/testing_flags.mk b/make/testing_flags.mk index a4de6e5a..e5f309fe 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -95,5 +95,3 @@ endif # Construct the integration test command with the added build flags. ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) rpctest $(backend) - -ITEST := rm -f lntest/itest/*.log; date; $(GOTEST) -v ./lntest/itest -tags="$(ITEST_TAGS)" $(TEST_FLAGS) $(ITEST_FLAGS) -logoutput -goroutinedump