* [PATCH v2 1/1] buildtools: clear out regex syntax warnings [not found] ` <20241213144145.59916-1-otilibil@eurecom.fr> @ 2024-12-13 14:40 ` Ariel Otilibili 2024-12-13 16:41 ` Robin Jarry 2025-02-07 14:44 ` David Marchand 0 siblings, 2 replies; 3+ messages in thread From: Ariel Otilibili @ 2024-12-13 14:40 UTC (permalink / raw) To: dev; +Cc: Thomas Monjalon, David Marchand, Robin Jarry, Ariel Otilibili, stable * invalid escape sequences now generate SyntaxWarning * therefore changed syntax to raw string noration. Link: https://docs.python.org/3/library/re.html#module-re Fixes: 0aeaf75df87 ("test: define unit tests suites based on test types") Fixes: 25065ef1f6c ("test: emit warning for orphaned tests") Cc: stable@dpdk.org Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr> --- buildtools/get-test-suites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildtools/get-test-suites.py b/buildtools/get-test-suites.py index c61f6a273f..fd22d25f36 100644 --- a/buildtools/get-test-suites.py +++ b/buildtools/get-test-suites.py @@ -6,10 +6,10 @@ import re input_list = sys.argv[1:] -test_def_regex = re.compile("REGISTER_([A-Z]+)_TEST\s*\(\s*([a-z0-9_]+)") +test_def_regex = re.compile(r"REGISTER_([A-Z]+)_TEST\s*\(\s*([a-z0-9_]+)") test_suites = {} # track tests not in any test suite. -non_suite_regex = re.compile("REGISTER_TEST_COMMAND\s*\(\s*([a-z0-9_]+)") +non_suite_regex = re.compile(r"REGISTER_TEST_COMMAND\s*\(\s*([a-z0-9_]+)") non_suite_tests = [] def get_fast_test_params(test_name, ln): -- 2.47.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/1] buildtools: clear out regex syntax warnings 2024-12-13 14:40 ` [PATCH v2 1/1] buildtools: clear out regex syntax warnings Ariel Otilibili @ 2024-12-13 16:41 ` Robin Jarry 2025-02-07 14:44 ` David Marchand 1 sibling, 0 replies; 3+ messages in thread From: Robin Jarry @ 2024-12-13 16:41 UTC (permalink / raw) To: Ariel Otilibili, dev; +Cc: Thomas Monjalon, David Marchand, stable Ariel Otilibili, Dec 13, 2024 at 15:40: > * invalid escape sequences now generate SyntaxWarning > * therefore changed syntax to raw string noration. > > Link: https://docs.python.org/3/library/re.html#module-re > Fixes: 0aeaf75df87 ("test: define unit tests suites based on test types") > Fixes: 25065ef1f6c ("test: emit warning for orphaned tests") > Cc: stable@dpdk.org > Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr> > --- Acked-by: Robin Jarry <rjarry@redhat.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/1] buildtools: clear out regex syntax warnings 2024-12-13 14:40 ` [PATCH v2 1/1] buildtools: clear out regex syntax warnings Ariel Otilibili 2024-12-13 16:41 ` Robin Jarry @ 2025-02-07 14:44 ` David Marchand 1 sibling, 0 replies; 3+ messages in thread From: David Marchand @ 2025-02-07 14:44 UTC (permalink / raw) To: Ariel Otilibili; +Cc: dev, Thomas Monjalon, Robin Jarry, stable On Fri, Dec 13, 2024 at 3:42 PM Ariel Otilibili <otilibil@eurecom.fr> wrote: > > * invalid escape sequences now generate SyntaxWarning > * therefore changed syntax to raw string noration. > > Link: https://docs.python.org/3/library/re.html#module-re > Fixes: 0aeaf75df87 ("test: define unit tests suites based on test types") > Fixes: 25065ef1f6c ("test: emit warning for orphaned tests") > Cc: stable@dpdk.org > Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr> Fixes: sha1 should mention 12 chars. Fixed, and applied, thanks. -- David Marchand ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-07 14:44 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20241208023022.777275-1-otilibil@eurecom.fr> [not found] ` <20241213144145.59916-1-otilibil@eurecom.fr> 2024-12-13 14:40 ` [PATCH v2 1/1] buildtools: clear out regex syntax warnings Ariel Otilibili 2024-12-13 16:41 ` Robin Jarry 2025-02-07 14:44 ` David Marchand
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).