Skip to content

Commit

Permalink
enable checkEtcdOnPath
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho committed Dec 20, 2021
1 parent 903eeae commit 904b4ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/start_simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ checkEtcdOnPath() {
echo "Checking etcd is on PATH"
which etcd && return
echo "Cannot find etcd on PATH."
echo "Please see https://git.k8s.io/community/contributors/devel/sig-testing/integration-tests.md#install-etcd-dependency for instructions."
echo "You can use 'hack/install-etcd.sh'on kubernetes/kubernetes repo to install a copy."
return 1
exit 1
}

CLEANUP_REQUIRED=
Expand All @@ -29,6 +27,8 @@ cleanup_etcd() {
echo "Clean up finished"
}

checkEtcdOnPath

trap cleanup_etcd EXIT

start_etcd
Expand Down

0 comments on commit 904b4ba

Please sign in to comment.