From 1fe65753853184a5f74019535d6adc3e3859d145 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 20 Sep 2007 19:03:16 -0700 Subject: [PATCH] Makefile: check-speed: leave the client node stopped when we're done --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 17cc4ef2..7282d599 100644 --- a/Makefile +++ b/Makefile @@ -207,13 +207,19 @@ check-memory-once: .built # performance tests against a test network that is also pre-established # (probably on a remote machine). Provide it with the path to a local # directory where this client node has been created (and populated with the -# necessary FURLs of the test network). This target will restart that client -# with the current code and then run the tests. +# necessary FURLs of the test network). This target will start that client +# with the current code and then run the tests. Afterwards it will stop the +# client. +# +# The 'sleep 5' is in there to give the new client a chance to connect to its +# storageservers, since check_speed.py has no good way of doing that itself. + check-speed: .built if [ -z '$(TESTCLIENTDIR)' ]; then exit 1; fi - $(PYTHON) bin/allmydata-tahoe restart -f $(TESTCLIENTDIR) - sleep 1 + $(PYTHON) bin/allmydata-tahoe start $(TESTCLIENTDIR) + sleep 5 $(PYTHON) src/allmydata/test/check_speed.py $(TESTCLIENTDIR) + $(PYTHON) bin/allmydata-tahoe stop $(TESTCLIENTDIR) test-darcs-boringfile: $(MAKE) -- 2.45.2