mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add dockerCmdWithError
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
5e331ad41a
commit
4290bdefab
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue