Skip to content

Commit d9e574c

Browse files
authored
Merge pull request kubernetes#87928 from johnbelamaric/show-output-in-test
LogResult if there is an error
2 parents 9bbd1a1 + ba38816 commit d9e574c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/storage/utils/host_exec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func (h *hostExecutor) exec(cmd string, node *v1.Node) (Result, error) {
160160
// the command exits non-zero.
161161
func (h *hostExecutor) IssueCommandWithResult(cmd string, node *v1.Node) (string, error) {
162162
result, err := h.exec(cmd, node)
163+
if err != nil {
164+
LogResult(result)
165+
}
163166
return result.Stdout, err
164167
}
165168

0 commit comments

Comments
 (0)