Merge pull request #645 from brendandburns/integration

Add a sanity check for existing etcd servers to the integration test script
This commit is contained in:
Clayton Coleman 2014-07-27 19:48:04 -04:00
commit f91bfe2e00

View File

@ -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