Skip to content

Commit

Permalink
Merge pull request kubernetes#32933 from pmorie/exec-e2e-debug
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Make container exec failures in e2e easier to debug

Makes container exec failures in e2e tests easier to debug.  Found while chasing some SELinux bugs :)

@pwittrock I'm adding this to the 1.4 milestone because it makes e2e failures easier to debug.
  • Loading branch information
Kubernetes Submit Queue authored Sep 19, 2016
2 parents 4b7f0c8 + 78d268e commit 416f81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/framework/exec_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 416f81f

Please sign in to comment.