aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbuild
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-06-07 17:37:55 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-06-08 20:16:52 +0200
commit0d5abf15b74358009a02efb629f7bc7c84841a1f (patch)
treec7b833d7aea937f4a67bdf3e8468734950d55a8b /tools/syz-testbuild
parentb270611864ec905fee493d0535175fc614201850 (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 'tools/syz-testbuild')
-rw-r--r--tools/syz-testbuild/testbuild.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-testbuild/testbuild.go b/tools/syz-testbuild/testbuild.go
index 72c0d235b..961fb2e4c 100644
--- a/tools/syz-testbuild/testbuild.go
+++ b/tools/syz-testbuild/testbuild.go
@@ -149,11 +149,11 @@ func test(repo vcs.Repo, bisecter vcs.Bisecter, kernelConfig []byte, env instanc
}
var verdicts []string
for i, res := range results {
- if res == nil {
+ if res.Error == nil {
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))