From 26967e354e030f6a022b7a60a7c9899ec25923aa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 9 Mar 2021 15:43:49 +0100 Subject: pkg/email: strip \t in test command args There was a precedent of using: syz fix: repo \t commit This was rejected as error. Support \t between tokens. --- pkg/email/parser_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index f093a0d22..88b7b4ad9 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -220,6 +220,18 @@ locking/core str: "test:", args: "git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core", }, + { + body: `#syz test: repo commit`, + cmd: CmdTest, + str: "test:", + args: "repo commit", + }, + { + body: `#syz test: repo commit`, + cmd: CmdTest, + str: "test:", + args: "repo commit", + }, { body: ` #syz test_5_arg_cmd arg1 @@ -233,6 +245,12 @@ arg5 str: "test_5_arg_cmd", args: "arg1 arg2 arg3 arg4 arg5", }, + { + body: `#syz test_5_arg_cmd arg1 arg2 arg3 arg4 arg5`, + cmd: cmdTest5, + str: "test_5_arg_cmd", + args: "arg1 arg2 arg3 arg4 arg5", + }, { body: ` #syz test_5_arg_cmd arg1 -- cgit mrf-deployment