aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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))