From ea15e6709cc2952744b0f53d53e6485411c4eec4 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Sat, 26 Jul 2014 22:31:30 -0700 Subject: [PATCH] Add a sanity check for running etcd servers to the integration test script. --- hack/integration-test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/integration-test.sh b/hack/integration-test.sh index a0a796d872e..bfd6b71ce98 100755 --- a/hack/integration-test.sh +++ b/hack/integration-test.sh @@ -19,6 +19,12 @@ if [ "$(which etcd)" == "" ]; then exit 1 fi +running_etcd=$(ps -ef | grep etcd | grep -c name) +if [ "$running_etcd" != "0" ]; then + echo "etcd appears to already be running on this machine, please kill and restart the test." + exit 1 +fi + # Stop right away if the build fails set -e