1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix TestExitCode

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-01-30 22:59:21 +00:00
parent 9481afa617
commit 720f64af18

View file

@ -155,7 +155,9 @@ func (d *driver) Run(c *execdriver.Command, startCallback execdriver.StartCallba
) )
go func() { go func() {
if err := c.Wait(); err != nil { if err := c.Wait(); err != nil {
waitErr = err if _, ok := err.(*exec.ExitError); !ok { // Do not propagate the error if it's simply a status code != 0
waitErr = err
}
} }
close(waitLock) close(waitLock)
}() }()