Merge pull request #1191 from timstclair/e2e-errors
Don't escape e2e test command output in error messages
This commit is contained in:
commit
de1bd289cb
@ -75,7 +75,7 @@ func getAttributes(ipAddress, portStr string) (*cadvisorApi.Attributes, error) {
|
|||||||
func RunCommand(cmd string, args ...string) error {
|
func RunCommand(cmd string, args ...string) error {
|
||||||
output, err := exec.Command(cmd, args...).CombinedOutput()
|
output, err := exec.Command(cmd, args...).CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("command %q %q failed with error: %v and output: %q", cmd, args, err, output)
|
return fmt.Errorf("command %q %q failed with error: %v and output: %v", cmd, args, err, output)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user