diff options
Diffstat (limited to 'pkg/bisect/bisect.go')
| -rw-r--r-- | pkg/bisect/bisect.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index b2ec3dd46..9c02a747f 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -488,15 +488,16 @@ func (env *env) test() (*testResult, error) { return res, nil } -func (env *env) processResults(current *vcs.Commit, results []error) (bad, good int, rep *report.Report) { +func (env *env) processResults(current *vcs.Commit, results []instance.EnvTestResult) ( + bad, good int, rep *report.Report) { var verdicts []string for i, res := range results { - if res == nil { + if res.Error == nil { good++ verdicts = append(verdicts, "OK") continue } - switch err := res.(type) { + switch err := res.Error.(type) { case *instance.TestError: if err.Boot { verdicts = append(verdicts, fmt.Sprintf("boot failed: %v", err)) |
