From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1439E10E882 for ; Fri, 8 Sep 2023 08:37:39 +0000 (UTC) Received: from linux.intel.com (maurocar-mobl2.ger.corp.intel.com [10.252.24.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 96AA5580EA8 for ; Fri, 8 Sep 2023 01:37:38 -0700 (PDT) Received: from maurocar by linux.intel.com with local (Exim 4.96) (envelope-from ) id 1qeWzg-004YDG-1y for igt-dev@lists.freedesktop.org; Fri, 08 Sep 2023 10:37:36 +0200 From: Mauro Carvalho Chehab To: igt-dev@lists.freedesktop.org Date: Fri, 8 Sep 2023 10:27:43 +0200 Message-ID: <20230908083734.1084351-8-mauro.chehab@linux.intel.com> In-Reply-To: <20230908083734.1084351-1-mauro.chehab@linux.intel.com> References: <20230908083734.1084351-1-mauro.chehab@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v4 07/11] scripts/test_list.py: don't be greedy while matching data from testlists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Mauro Carvalho Chehab Testlist regexes are not greedy: despite not containing a $ at the end, they stop parsing at the end of string. Honour that, doing the same logic as IGT runner does. Signed-off-by: Mauro Carvalho Chehab --- scripts/test_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/test_list.py b/scripts/test_list.py index ff4b2d8d76ae..c9073cc0305f 100644 --- a/scripts/test_list.py +++ b/scripts/test_list.py @@ -457,6 +457,8 @@ class TestList: if match: test = match.group(1) subtest = match.group(2) + if not subtest.endswith("$"): + subtest += r"(\@.*)?$" testlist[name].append(re.compile(f"{test}{subtest}")) def __filter_subtest(self, test, subtest, field_not_found_value): -- 2.41.0