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:
parent
9481afa617
commit
720f64af18
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Add table
Reference in a new issue