From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5199245E8E for ; Fri, 13 Dec 2024 15:42:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26EEB40DCD; Fri, 13 Dec 2024 15:42:30 +0100 (CET) Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) by mails.dpdk.org (Postfix) with ESMTP id 0FD5940BA4; Fri, 13 Dec 2024 15:42:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734100948; x=1765636948; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tzVKVHdAWZmzjkZ03nOWl/pfO/X1N0Aq+EU3zyLE1eE=; b=opicLgcQbRMb8KeyDgtQ8RErn7UA7RrlNhqjuhygT3Rl0Wi/reAS8lxF hYhxd0vda5HE2QY+U8HTkvAQqwFYRQcn1moLdjaxn8v8v6RoqgFQhEnFE cNOdkv4Bq/bO1gEllxgn6RBUQlBvCrD6hom+SaRA/GmPFQ/NIU6ERjP3K M=; X-CSE-ConnectionGUID: 4OIlwrUjSW+eg+EqHqsUZw== X-CSE-MsgGUID: Er/ZmNcaRVuCLzmG1fQl3w== X-IronPort-AV: E=Sophos;i="6.12,231,1728943200"; d="scan'208";a="28174022" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 13 Dec 2024 15:42:27 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id A89C02B92; Fri, 13 Dec 2024 15:42:27 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Thomas Monjalon , David Marchand , Robin Jarry , Ariel Otilibili , stable@dpdk.org Subject: [PATCH v2 1/1] buildtools: clear out regex syntax warnings Date: Fri, 13 Dec 2024 15:40:58 +0100 Message-ID: <20241213144145.59916-2-otilibil@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241213144145.59916-1-otilibil@eurecom.fr> References: <20241208023022.777275-1-otilibil@eurecom.fr> <20241213144145.59916-1-otilibil@eurecom.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org * 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 --- 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