From 56cc113a8ea223321811dcbe8de975e081f5f5b2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 17 Jan 2018 21:50:57 +0100 Subject: 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 --- dashboard/app/reporting_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dashboard/app/reporting_test.go') 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) -- cgit mrf-deployment