Merge pull request #3858 from vieux/fix_testexitcode

fix TestExitCode
This commit is contained in:
Victor Vieux 2014-01-30 15:52:28 -08:00
commit e4b3b391d6
1 changed files with 3 additions and 1 deletions

View File

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