Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
sashrith committed Jun 21, 2022
1 parent 8e0013e commit a446f1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3826,6 +3826,9 @@ func sshExec(sshClientConfig *ssh.ClientConfig, host string, cmd string) (fssh.R
result.Stdout = bytesStdout.String()
result.Stderr = bytesStderr.String()
result.Code = code
if bytesStderr.String() != "" {
err = fmt.Errorf("failed running `%s` on %s@%s: '%v'", cmd, sshClientConfig.User, host, bytesStderr.String())
}
framework.Logf("host: %v, command: %v, return code: %v, stdout: %v, stderr: %v",
host, cmd, code, bytesStdout.String(), bytesStderr.String())
return result, err
Expand Down

0 comments on commit a446f1e

Please sign in to comment.