diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-06-07 17:37:55 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-06-08 20:16:52 +0200 |
| commit | 0d5abf15b74358009a02efb629f7bc7c84841a1f (patch) | |
| tree | c7b833d7aea937f4a67bdf3e8468734950d55a8b /pkg/bisect/bisect.go | |
| parent | b270611864ec905fee493d0535175fc614201850 (diff) | |
all: remember console output for all patch tests
Currently syzbot only saves a log if there was a build/test error.
Closes #3185
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)) |
