Browse code

Add dockerCmdWithError

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Vincent Demeester authored on 2015/07/14 15:35:06
Showing 1 changed files
... ...
@@ -550,6 +550,10 @@ func pullImageIfNotExist(image string) (err error) {
550 550
 	return
551 551
 }
552 552
 
553
+func dockerCmdWithError(c *check.C, args ...string) (string, int, error) {
554
+	return runCommandWithOutput(exec.Command(dockerBinary, args...))
555
+}
556
+
553 557
 func dockerCmd(c *check.C, args ...string) (string, int) {
554 558
 	out, status, err := runCommandWithOutput(exec.Command(dockerBinary, args...))
555 559
 	c.Assert(err, check.IsNil, check.Commentf("%q failed with errors: %s, %v", strings.Join(args, " "), out, err))