mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Add a sanity check for running etcd servers to the integration test script.
This commit is contained in:
parent
ab91e074d8
commit
ea15e6709c
@ -19,6 +19,12 @@ if [ "$(which etcd)" == "" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Stop right away if the build fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user