From fcac021fe5ed726e926d2e585e7a2f59d8827f21 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 16 Dec 2022 00:01:51 +0100 Subject: pkg/subsystem: extract filesystems from guilty path As we can easily do the subsystem <-> path mapping, let's also use it for determining the actual involved filesystem. --- dashboard/app/app_test.go | 2 +- dashboard/app/config_linux_test.go | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'dashboard/app') diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index 3fa2e8499..400f16050 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -357,7 +357,7 @@ var testConfig = &GlobalConfig{ }, }, }, - Subsystems: &SubsystemsConfig{ + Subsystems: SubsystemsConfig{ SubsystemCc: subsystem.LinuxGetMaintainers, }, }, diff --git a/dashboard/app/config_linux_test.go b/dashboard/app/config_linux_test.go index 595f4b47a..1d4e82ac2 100644 --- a/dashboard/app/config_linux_test.go +++ b/dashboard/app/config_linux_test.go @@ -46,8 +46,15 @@ func TestFsSubsystemFlow(t *testing.T) { client.ReportCrash(crash) reply = c.pollEmailBug() - // We have no means to determine the subsystem now, so it shouldn't be anywhere. - c.expectEQ(reply.Subject, "[syzbot] WARNING in nilfs_dat_commit_end") + // The subsystem should have been taken from the guilty path. + c.expectEQ(reply.Subject, "[syzbot] [nilfs2?] WARNING in nilfs_dat_commit_end") + c.expectEQ(reply.To, []string{ + "konishi.ryusuke@gmail.com", + "linux-kernel@vger.kernel.org", + "linux-nilfs@vger.kernel.org", + "maintainer@kernel.org", + "test@syzkaller.com", + }) // C. Send a possibly vfs bug without a reproducer. // ----------------------------------------- -- cgit mrf-deployment