Fix e2e teardown

This commit is contained in:
Joe Beda 2014-08-14 13:57:50 -07:00
parent ad8e853e82
commit 629f964791
2 changed files with 2 additions and 1 deletions

View File

@ -357,7 +357,7 @@ function test-teardown {
--project ${PROJECT} \
--norespect_terminal_width \
--force \
${MINION_TAG}-http-alt
${MINION_TAG}-http-alt || true > /dev/null
$(dirname $0)/../cluster/kube-down.sh > /dev/null
}

View File

@ -43,6 +43,7 @@ export KUBE_REPO_ROOT="$(dirname $0)/.."
export CLOUDCFG="${KUBE_REPO_ROOT}/cluster/kubecfg.sh -expect_version_match"
if [[ $TEAR_DOWN -ne 0 ]]; then
detect-project
trap test-teardown EXIT
exit 0
fi