Explorar o código

Add dockerCmdWithError

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Vincent Demeester %!s(int64=10) %!d(string=hai) anos
pai
achega
4290bdefab
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      integration-cli/docker_utils.go

+ 4 - 0
integration-cli/docker_utils.go

@@ -550,6 +550,10 @@ func pullImageIfNotExist(image string) (err error) {
 	return
 	return
 }
 }
 
 
+func dockerCmdWithError(c *check.C, args ...string) (string, int, error) {
+	return runCommandWithOutput(exec.Command(dockerBinary, args...))
+}
+
 func dockerCmd(c *check.C, args ...string) (string, int) {
 func dockerCmd(c *check.C, args ...string) (string, int) {
 	out, status, err := runCommandWithOutput(exec.Command(dockerBinary, args...))
 	out, status, err := runCommandWithOutput(exec.Command(dockerBinary, args...))
 	c.Assert(err, check.IsNil, check.Commentf("%q failed with errors: %s, %v", strings.Join(args, " "), out, err))
 	c.Assert(err, check.IsNil, check.Commentf("%q failed with errors: %s, %v", strings.Join(args, " "), out, err))