mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Make container exec failures in e2e easier to debug
This commit is contained in:
parent
e5a84398db
commit
78d268e7d3
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user