From 8c6013de89e4280c27344f6180db06ae27b7749f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 1 Sep 2023 12:11:42 +0200 Subject: dashboard: auto-guess kernel and repo for #syz test We used to support this only for external reportings, but let's auto-guess these parameters for all incoming patch testing commands. --- pkg/email/parser_test.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index 0d3c54c87..239b795a3 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -217,7 +217,8 @@ git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core cmd: &SingleCommand{ Command: CmdTest, Str: "test", - Args: "git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core", + // We only look for arguments if there's ":" after "#syz test". + Args: "", }, }, { @@ -249,6 +250,16 @@ locking/core Args: "repo commit", }, }, + { + body: `#syz test +patch-begins +`, + cmd: &SingleCommand{ + Command: CmdTest, + Str: "test", + Args: "", + }, + }, { body: ` #syz test_5_arg_cmd arg1 @@ -696,7 +707,7 @@ index 3d85747bd86e..a257b872a53d 100644 { Command: CmdTest, Str: "test", - Args: "commit 59372bbf3abd5b24a7f6f676a3968685c280f955", + Args: "", }, }, }}, -- cgit mrf-deployment