test: replace ExitStatus() with go1.11 compatible syntax
Signed-off-by: Ron Evans <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
208e1719ad
коммит
16201c41dc
1 изменённых файлов: 4 добавлений и 1 удалений
5
main.go
5
main.go
|
@ -367,7 +367,10 @@ func Test(pkgName, target string, config *BuildConfig) error {
|
|||
if err != nil {
|
||||
// Propagate the exit code
|
||||
if err, ok := err.(*exec.ExitError); ok {
|
||||
os.Exit(err.ExitCode())
|
||||
if status, ok := err.Sys().(syscall.WaitStatus); ok {
|
||||
os.Exit(status.ExitStatus())
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
return &commandError{"failed to run compiled binary", tmppath, err}
|
||||
}
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче