From 0ad036e0eb4214f4e2987a8d7bba1a2a39c96607 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 29 Jan 2015 09:56:20 -0800 Subject: [PATCH] Put watch in a loop so that we grab all event logs, even if the watch hangs up. --- hack/e2e.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/e2e.go b/hack/e2e.go index 7285d4c48e8..6f2b6eced69 100644 --- a/hack/e2e.go +++ b/hack/e2e.go @@ -279,7 +279,7 @@ func shuffleStrings(strings []string, r *rand.Rand) { } func Test() (results ResultsByTest) { - defer runBashUntil("watchEvents", "$KUBECTL --watch-only get events")() + defer runBashUntil("watchEvents", "while true; do $KUBECTL --watch-only get events; done")() if !IsUp() { log.Fatal("Testing requested, but e2e cluster not up!")