Skip to content

Commit

Permalink
Merge pull request kubernetes#645 from brendandburns/integration
Browse files Browse the repository at this point in the history
Add a sanity check for existing etcd servers to the integration test script
  • Loading branch information
smarterclayton committed Jul 27, 2014
2 parents 5d12b63 + ea15e67 commit f91bfe2
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 f91bfe2

Please sign in to comment.