From d898372568a3e00d4bda0359393d833a9f30fe1d Mon Sep 17 00:00:00 2001 From: "Daniel, Dao Quang Minh" Date: Thu, 11 Jun 2015 22:53:55 -0400 Subject: [PATCH] TestExecStopNotHanging: log output as string When cmd failed, log its ouput as string instead of byte array to prevent test log like: [49 53 ....] exit status 1 Signed-off-by: Daniel, Dao Quang Minh --- integration-cli/docker_cli_exec_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_exec_test.go b/integration-cli/docker_cli_exec_test.go index 9abafb8fa9..c12a6120fa 100644 --- a/integration-cli/docker_cli_exec_test.go +++ b/integration-cli/docker_cli_exec_test.go @@ -321,7 +321,8 @@ func (s *DockerSuite) TestExecParseError(c *check.C) { } func (s *DockerSuite) TestExecStopNotHanging(c *check.C) { - if out, err := exec.Command(dockerBinary, "run", "-d", "--name", "testing", "busybox", "top").CombinedOutput(); err != nil { + runCmd := exec.Command(dockerBinary, "run", "-d", "--name", "testing", "busybox", "top") + if out, _, err := runCommandWithOutput(runCmd); err != nil { c.Fatal(out, err) }