diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-12-16 00:01:51 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-12-16 10:22:43 +0100 |
| commit | fcac021fe5ed726e926d2e585e7a2f59d8827f21 (patch) | |
| tree | 6d0c71e92b2494c53014124ca0197c760889453d /dashboard/app | |
| parent | bd797b29e63755f6d6fceb2b8ef5430e7def9551 (diff) | |
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.
Diffstat (limited to 'dashboard/app')
| -rw-r--r-- | dashboard/app/app_test.go | 2 | ||||
| -rw-r--r-- | dashboard/app/config_linux_test.go | 11 |
2 files changed, 10 insertions, 3 deletions
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. // ----------------------------------------- |
