From: alex <alex@infiniteadaptability.org>
Date: Sat, 25 Jun 2022 07:20:23 +0000 (-0700)
Subject: ...
X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=b68732e73479295e90b2ac491d80597cf34043d9;p=cold

...
---

diff --git a/Makefile.am b/Makefile.am
index c4e4179..1224485 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,7 +17,10 @@ cold_SOURCES += \
 	inc/main.h
 
 check-local:
+	@-ps -A | grep bitcoind > /dev/null && echo "ERROR: bitcoind running; can't run tests"
+	@[[ ! "`ps -A | grep bitcoind > /dev/null && echo "bitcoind running"`" != "" ]] && echo ""
 	@head -n `grep -n "main()" cold-setup | cut -f1 -d:` cold-setup | head -n -1 > test/source.sh
+	@-rm -rf test/.testdir
 	@cd test && run-parts --exit-on-error --regex '.*\.tests\.sh' .
 	@rm -rf test/.testdir