From 78d268e7d3086454f385df922c03d9009a860db4 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Fri, 16 Sep 2016 21:20:03 -0400 Subject: [PATCH] Make container exec failures in e2e easier to debug --- test/e2e/framework/exec_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/exec_util.go b/test/e2e/framework/exec_util.go index cf4e1fe7e5f..10c86946b2c 100644 --- a/test/e2e/framework/exec_util.go +++ b/test/e2e/framework/exec_util.go @@ -55,8 +55,8 @@ func (f *Framework) ExecCommandInContainer(podName, containerName string, cmd .. }, api.ParameterCodec) err = execute("POST", req.URL(), config, stdin, &stdout, &stderr, tty) - Expect(err).NotTo(HaveOccurred(), "post request failed") Logf("Exec stderr: %q", stderr.String()) + Expect(err).NotTo(HaveOccurred(), "post request failed") return strings.TrimSpace(stdout.String()) }