1
0
複製 0

Produce error if no kernels found

timestamps
dump_stack() 2018-11-17 15:54:02 +00:00
父節點 cc87a792c5
當前提交 ea738c994f
共有 1 個文件被更改,包括 8 次插入0 次删除

查看文件

@ -414,6 +414,8 @@ func readArtifactConfig(path string) (artifactCfg artifact, err error) {
func performCI(ka artifact, kcfg kernelConfig, binaryPath, testPath string,
qemuTimeout, dockerTimeout time.Duration) (err error) {
found := false
swg := sizedwaitgroup.New(runtime.NumCPU())
for _, kernel := range kcfg.Kernels {
var supported bool
@ -423,12 +425,18 @@ func performCI(ka artifact, kcfg kernelConfig, binaryPath, testPath string,
}
if supported {
found = true
swg.Add()
go whatever(&swg, ka, kernel, binaryPath, testPath,
qemuTimeout, dockerTimeout)
}
}
swg.Wait()
if !found {
err = errors.New("No supported kernels found")
}
return
}