Explorar el Código

Add dockerCmdWithError

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Vincent Demeester hace 10 años
padre
commit
4290bdefab
Se han modificado 1 ficheros con 4 adiciones y 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
 }
 
+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) {
 	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))