Merge pull request #87928 from johnbelamaric/show-output-in-test

LogResult if there is an error
This commit is contained in:
Kubernetes Prow Robot
2020-02-07 18:33:30 -08:00
committed by GitHub

View File

@@ -160,6 +160,9 @@ func (h *hostExecutor) exec(cmd string, node *v1.Node) (Result, error) {
// the command exits non-zero.
func (h *hostExecutor) IssueCommandWithResult(cmd string, node *v1.Node) (string, error) {
result, err := h.exec(cmd, node)
if err != nil {
LogResult(result)
}
return result.Stdout, err
}