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 /dashboard | |
| 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 'dashboard')
| -rw-r--r-- | dashboard/app/jobs_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dashboard/app/jobs_test.go b/dashboard/app/jobs_test.go index fb2e4e878..f0ff7750d 100644 --- a/dashboard/app/jobs_test.go +++ b/dashboard/app/jobs_test.go @@ -240,13 +240,15 @@ patch: %[3]v pollResp = c.client2.pollJobs(build.Manager) c.expectEQ(pollResp.Type, dashapi.JobTestPatch) jobDoneReq = &dashapi.JobDoneReq{ - ID: pollResp.ID, - Build: *build, + ID: pollResp.ID, + Build: *build, + CrashLog: []byte("console output"), } c.client2.JobDone(jobDoneReq) { dbJob, dbBuild, _ := c.loadJob(pollResp.ID) patchLink := externalLink(c.ctx, textPatch, dbJob.Patch) + logLink := externalLink(c.ctx, textCrashLog, dbJob.CrashLog) kernelConfigLink := externalLink(c.ctx, textKernelConfig, dbBuild.KernelConfig) msg := c.pollEmailBug() c.expectEQ(len(msg.Attachments), 0) @@ -260,13 +262,14 @@ Tested on: commit: 11111111 kernel_commit_title1 git tree: repo1 branch1 +console output: %[4]v kernel config: %[3]v dashboard link: https://testapp.appspot.com/bug?extid=%[1]v compiler: compiler1 patch: %[2]v Note: testing is done by a robot and is best-effort only. -`, extBugID, patchLink, kernelConfigLink)) +`, extBugID, patchLink, kernelConfigLink, logLink)) c.checkURLContents(patchLink, []byte(patch)) c.checkURLContents(kernelConfigLink, build.KernelConfig) } |
