mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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:
@@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user