Skip to content

Commit

Permalink
Add a sanity check for running etcd servers to the integration test s…
Browse files Browse the repository at this point in the history
…cript.
  • Loading branch information
brendandburns committed Jul 27, 2014
1 parent ab91e07 commit ea15e67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea15e67

Please sign in to comment.