aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2021-09-15 15:14:27 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2021-09-16 15:21:06 +0200
commit20497e8e232a2f190f5fc182a0ab45c814c0968f (patch)
tree15a01afb18bd0a228adba9a731e6b013882a91dc /syz-ci
parent7612dc7768b6f0f12e9b370437eaa9c041cdb8c9 (diff)
all: try to query compiler id even when a build fails
Currently syzkaller leaves an empty CompilerID, when it has failed to build a kernel. However, in almost all cases this is possible to do. Query compiler information irregardless of whether the build process is successful.
Diffstat (limited to 'syz-ci')
-rw-r--r--syz-ci/jobs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go
index 7ea6aaff7..605ddaf7b 100644
--- a/syz-ci/jobs.go
+++ b/syz-ci/jobs.go
@@ -549,10 +549,10 @@ func (jp *JobProcessor) testPatch(job *Job, mgrcfg *mgrconfig.Config) error {
log.Logf(0, "job: building kernel...")
kernelConfig, details, err := env.BuildKernel(mgr.mgrcfg.Compiler, mgr.mgrcfg.Ccache, mgr.mgrcfg.Userspace,
mgr.mgrcfg.KernelCmdline, mgr.mgrcfg.KernelSysctl, req.KernelConfig)
+ resp.Build.CompilerID = details.CompilerID
if err != nil {
return err
}
- resp.Build.CompilerID = details.CompilerID
if kernelConfig != "" {
resp.Build.KernelConfig, err = ioutil.ReadFile(kernelConfig)
if err != nil {