aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-17 21:50:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-17 21:50:57 +0100
commit56cc113a8ea223321811dcbe8de975e081f5f5b2 (patch)
tree85e6b6f438992cb2f3f792dc95247a9bd07928a2 /dashboard/app/reporting_test.go
parentb8970f313eb05ee8e7e66337a9329a66ed2f2079 (diff)
dashboard/app: improve report format
- show kernel repo alias - show commit title/date - say how many times the crash happened/where - some minor tweaks Fixes #468
Diffstat (limited to 'dashboard/app/reporting_test.go')
-rw-r--r--dashboard/app/reporting_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/dashboard/app/reporting_test.go b/dashboard/app/reporting_test.go
index dbba2e626..e2b51d1c8 100644
--- a/dashboard/app/reporting_test.go
+++ b/dashboard/app/reporting_test.go
@@ -63,6 +63,8 @@ func TestReportBug(t *testing.T) {
Log: []byte("log1"),
Report: []byte("report1"),
CrashID: rep.CrashID,
+ NumCrashes: 1,
+ HappenedOn: []string{"repo1/branch1"},
}
c.expectEQ(rep, want)
@@ -81,6 +83,7 @@ func TestReportBug(t *testing.T) {
t.Fatal("get the same CrashID for new crash")
}
want.CrashID = reports[0].CrashID
+ want.NumCrashes = 2
c.expectEQ(reports[0], want)
cmd := &dashapi.BugUpdate{
@@ -128,6 +131,7 @@ func TestReportBug(t *testing.T) {
want.ID = rep2.ID
want.First = true
want.Config = []byte(`{"Index":2}`)
+ want.NumCrashes = 3
c.expectEQ(rep2, want)
// Check that that we can't upstream the bug in the final reporting.
@@ -234,6 +238,8 @@ func TestInvalidBug(t *testing.T) {
Report: []byte("report2"),
ReproC: []byte("int main() { return 1; }"),
CrashID: rep.CrashID,
+ NumCrashes: 1,
+ HappenedOn: []string{"repo1/branch1"},
}
c.expectEQ(rep, want)