Merge pull request #32933 from pmorie/exec-e2e-debug

Automatic merge from submit-queue

Make container exec failures in e2e easier to debug

Makes container exec failures in e2e tests easier to debug.  Found while chasing some SELinux bugs :)

@pwittrock I'm adding this to the 1.4 milestone because it makes e2e failures easier to debug.
This commit is contained in:
Kubernetes Submit Queue
2016-09-19 13:48:35 -07:00
committed by GitHub

View File

@@ -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())
}