aboutsummaryrefslogtreecommitdiff
path: root/dashboard/app/bisect_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/app/bisect_test.go')
-rw-r--r--dashboard/app/bisect_test.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/dashboard/app/bisect_test.go b/dashboard/app/bisect_test.go
index 7b4f63b6c..0512ab9fc 100644
--- a/dashboard/app/bisect_test.go
+++ b/dashboard/app/bisect_test.go
@@ -127,7 +127,7 @@ func TestBisectCause(t *testing.T) {
_, extBugID, err := email.RemoveAddrContext(msg2.Sender)
c.expectOK(err)
- _, dbCrash, _ := c.loadBug(extBugID)
+ dbBug, dbCrash, _ := c.loadBug(extBugID)
reproSyzLink := externalLink(c.ctx, textReproSyz, dbCrash.ReproSyz)
reproCLink := externalLink(c.ctx, textReproC, dbCrash.ReproC)
dbJob, dbBuild, dbJobCrash := c.loadJob(jobID)
@@ -167,13 +167,16 @@ Fixes: 36e65cb4a044 ("kernel: add a bug")
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
`, extBugID, bisectLogLink, bisectCrashReportLink, bisectCrashLogLink, kernelConfigLink, reproSyzLink, reproCLink))
- syzRepro := []byte(fmt.Sprintf("%s#%s\n%s", syzReproPrefix, crash2.ReproOpts, crash2.ReproSyz))
+ syzRepro := []byte(fmt.Sprintf("# https://testapp.appspot.com/bug?id=%v\n%s#%s\n%s",
+ dbBug.keyHash(), syzReproPrefix, crash2.ReproOpts, crash2.ReproSyz))
+ cRepro := []byte(fmt.Sprintf("// https://testapp.appspot.com/bug?id=%v\n%s",
+ dbBug.keyHash(), crash2.ReproC))
c.checkURLContents(bisectLogLink, []byte("bisect log 2"))
c.checkURLContents(bisectCrashReportLink, []byte("bisect crash report"))
c.checkURLContents(bisectCrashLogLink, []byte("bisect crash log"))
c.checkURLContents(kernelConfigLink, []byte("config1"))
c.checkURLContents(reproSyzLink, syzRepro)
- c.checkURLContents(reproCLink, crash2.ReproC)
+ c.checkURLContents(reproCLink, cRepro)
}
// The next reporting must get bug report with bisection results.
@@ -365,7 +368,7 @@ https://goo.gl/tpsmEJ#testing-patches`,
_, extBugID, err = email.RemoveAddrContext(msg4.Sender)
c.expectOK(err)
- _, dbCrash, _ = c.loadBug(extBugID)
+ dbBug, dbCrash, _ = c.loadBug(extBugID)
reproSyzLink = externalLink(c.ctx, textReproSyz, dbCrash.ReproSyz)
reproCLink = externalLink(c.ctx, textReproC, dbCrash.ReproC)
dbJob, dbBuild, dbJobCrash = c.loadJob(jobID)
@@ -405,7 +408,8 @@ If the result looks correct, please mark the bug fixed by replying with:
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
`, extBugID, bisectLogLink, bisectCrashReportLink, bisectCrashLogLink, kernelConfigLink, reproSyzLink, reproCLink))
- syzRepro := []byte(fmt.Sprintf("%s#%s\n%s", syzReproPrefix, crash4.ReproOpts, crash4.ReproSyz))
+ syzRepro := []byte(fmt.Sprintf("# https://testapp.appspot.com/bug?id=%v\n%s#%s\n%s",
+ dbBug.keyHash(), syzReproPrefix, crash4.ReproOpts, crash4.ReproSyz))
c.checkURLContents(bisectLogLink, []byte("bisectfix log 4"))
c.checkURLContents(bisectCrashReportLink, []byte("bisectfix crash report 4"))
c.checkURLContents(bisectCrashLogLink, []byte("bisectfix crash log 4"))
@@ -582,7 +586,7 @@ func TestBisectCauseAncient(t *testing.T) {
c.expectEQ(msg.Body, fmt.Sprintf(`Bisection is inconclusive: the bug happens on the oldest tested release.
bisection log: %[2]v
-start commit: 11111111 kernel_commit_title1
+oldest commit: 11111111 kernel_commit_title1
git tree: repo1 branch1
final crash: %[3]v
console output: %[4]v