From 0379b4f1bff10e687bd0e3e4d417f05a4cd7058f Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 11 Nov 2021 00:47:14 +0800 Subject: [PATCH] makefile: add itest-clean to kill uncleaned processes --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 69ca4812e..370ebe14d 100644 --- a/Makefile +++ b/Makefile @@ -199,6 +199,10 @@ itest-parallel: build-itest db-instance rm -rf lntest/itest/*.log lntest/itest/.logs-*; date EXEC_SUFFIX=$(EXEC_SUFFIX) echo "$$(seq 0 $$(expr $(ITEST_PARALLELISM) - 1))" | xargs -P $(ITEST_PARALLELISM) -n 1 -I {} scripts/itest_part.sh {} $(NUM_ITEST_TRANCHES) $(TEST_FLAGS) $(ITEST_FLAGS) +itest-clean: + @$(call print, "Cleaning old itest processes") + killall lnd-itest || echo "no running lnd-itest process found"; + unit: btcd @$(call print, "Running unit tests.") $(UNIT)