Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always stop the guestbook example regardless of how the tests finishes. #5177

Merged
merged 1 commit into from
Mar 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion hack/e2e-suite/guestbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ export KUBECTL KUBE_CONFIG_FILE
source "${KUBE_ROOT}/cluster/kube-env.sh"
source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"

GUESTBOOK="${KUBE_ROOT}/examples/guestbook"

function teardown() {
${KUBECTL} stop -f "${GUESTBOOK}"
}

prepare-e2e

GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
trap "teardown" EXIT

echo "WARNING: this test is a no op that only attempts to launch guestbook resources."
# Launch the guestbook example
Expand Down