diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index e7b761b393f..556ad6f8e7c 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -150,6 +150,6 @@ cleanup() exit 0 } -trap cleanup EXIT SIGINT +trap cleanup EXIT while true; do read x; done diff --git a/hack/test-integration.sh b/hack/test-integration.sh index fcf04645f77..58df43b06de 100755 --- a/hack/test-integration.sh +++ b/hack/test-integration.sh @@ -33,7 +33,7 @@ cleanup() { "${KUBE_ROOT}/hack/build-go.sh" "$@" cmd/integration # Run cleanup to stop etcd on interrupt or other kill signal. -trap cleanup HUP INT QUIT TERM +trap cleanup EXIT kube::etcd::start