From patchwork Tue Oct 15 14:08:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gustavo Romero X-Patchwork-Id: 835437 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c8f:0:b0:37d:45d0:187 with SMTP id z15csp255446wrs; Tue, 15 Oct 2024 07:09:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXGH3vDDIxg0hceIVE1pJgm0bfyE9Y+DYrrODjVNIZCHrdcPxsWmdczZEatgCm/fXdYFi4sPw==@linaro.org X-Google-Smtp-Source: AGHT+IHg3Jhc8EH10zc1RZnKu/lRAiBVMrN7lAyabauprH/uA68pib5/tXvp+m2KWQvdlSACrEdT X-Received: by 2002:a05:6102:943:b0:4a3:e3f5:2766 with SMTP id ada2fe7eead31-4a4659a7ea1mr12762771137.16.1729001375130; Tue, 15 Oct 2024 07:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729001375; cv=none; d=google.com; s=arc-20240605; b=K5J4sv7ptzuh/+lhsSbN7yB8kqTtA+NDcCoDD8R7hTcdNL+mupc0qOURdDPlTwJo51 VRA4SgekUf/eQ49a3G2vNsj2AUKnWCDNGqqIttC448RrKfcQV/cYj3PaB+sBvpy4tudG BjUNNwFpg90ALS59oqgHE/XNz9XBi87EaUFOInf/QSh6ROZ7wmNzUT7f5VPgzgX4M12P KouCwgWhE9++xEEnpGvpaYH2GKNouoU6x0JJziYph2o04W7U9vlUvS4uZ0Q9TkxwUOdu wy0YN7cGxpQtcHP+lJ0ACu2zhqlb2TVPQ6rVptF7tBbD+9rXHPbCARWbJdM+bAOszcXK kgKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=n7khBWuAQuhlzuhiV0IiArZ/4WVz7fsPkQXZudGKbtc=; fh=J7WMDFSlBY6Z5vg3zlfBylNB76JKDaD0ymbs9LOTPyc=; b=fEbdLfSyOBoEWBpUC+Wiaor1LigFAuPg9TrttrmsyqS/AAZ1rSOZ6JZFBnI6ih0RDP 6aOeoLtBVLweqIxVQ9+h6itYPAfPfWjbV6PIyvs50JSoM2mqGrnCX/Z3S/snqTA9Glqk PUIK16u6oIGzAIg2/vOWDsGw7Bdm72D6ydKxfs+vhaw5UMQRUJz1Zhv+k3e5SAwcaqAd T2PnMubGbk+V03nes4YNyiODFlihEYOgW2wNr04mpSYYfO6wrRaIpmpzXLjwmoD/RNBB JCB/kkOfbHB4oM4jmgmXjHmaqhwDQYtQjfC9I1mwxiRoO3fGCUxtILisJREp9i1CnqXz IXdw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5mDGxjU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4a5acb244fdsi280881137.150.2024.10.15.07.09.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Oct 2024 07:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5mDGxjU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0iEh-00018A-71; Tue, 15 Oct 2024 10:09:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0iEe-00016T-7R for qemu-devel@nongnu.org; Tue, 15 Oct 2024 10:09:16 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0iEc-00021N-Jt for qemu-devel@nongnu.org; Tue, 15 Oct 2024 10:09:15 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-71e6d988ecfso1377345b3a.0 for ; Tue, 15 Oct 2024 07:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729001352; x=1729606152; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=n7khBWuAQuhlzuhiV0IiArZ/4WVz7fsPkQXZudGKbtc=; b=A5mDGxjU15o3h//io/e4sk7cwvsp4stFX3Q7838SQAVrUzI2J/n+PBJ2Ca2WEole7M FaIcBtWVvzlTb5r3AxKRWPPhUjW/Kzc2rzsjKUJxNfh87m51dFRtTuTFXUCcSVhrB9bb GQ9LOxvZRTU6uASSi1LFHaBYamjaLt2thnKGab+VP9fqHLRur1yKmlH4vbmpjKrbvbNn vXFW78nCuLcT0fgzIpppTfSLbPFiYlDEI8kUNdvJnpSivETmIs2B90cZ13Tcw6bEthK6 y2Wqhqs44lze7mOkcG8QlSwfdXtXxkfrgUqzIWbpYcNsdIoz45etDMBGUWk1nbLDoczZ A8vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729001352; x=1729606152; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n7khBWuAQuhlzuhiV0IiArZ/4WVz7fsPkQXZudGKbtc=; b=neVX3+PFh8Pa4yDiSSGFLyjHvB0RKPksw8Aa55BMRNMKOXXWSbLQmQzlUVzV9QCnoz fU5LqggIFGLdpJDvdTQql2JTTeDukCwFPPg2CJ+8cfO0MYgDbPnvcNSsw8XkT+/Uul6I xWkkj+6DTvoEquePX8Z+fCjRKuulCEUG3kVuVj7lLI2hAoKf8L2qX94AAUfmxvJPvFXz Jj/DUpaI+DYzJm3FyXUUPLIkySK2Cd7OQgPDXhCUqhagKIfNV51aChfgYrAG16Sj+tJu JF08MKuFreUaGQg99PZ0BKrTm0S7qsKUp3LgAKiM723qzepXXUuscLyvAHu7+0Gn4mzP e17A== X-Gm-Message-State: AOJu0YyfHsXyxbm15PWmDSiV94ruTm4+5fa8XgkJ1WoSHTCZlhlvzeCk 3W+WAayUHCfIluOk8US4Nl10Dtrrk4G1P1X4jAweMPTb/ZhqeCEbSuXu7cbP4M9Bmkv1Vqp1J0o Z X-Received: by 2002:a05:6a00:2306:b0:71e:6f32:df07 with SMTP id d2e1a72fcca58-71e6f33c757mr6595863b3a.1.1729001351801; Tue, 15 Oct 2024 07:09:11 -0700 (PDT) Received: from amd.. ([2804:7f0:b401:3301:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e774caab8sm1325614b3a.145.2024.10.15.07.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 07:09:11 -0700 (PDT) From: Gustavo Romero To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: gustavo.romero@linaro.org Subject: [PATCH] tests/tcg/aarch64: Use raw strings for regexes in test-mte.py Date: Tue, 15 Oct 2024 14:08:06 +0000 Message-Id: <20241015140806.385449-1-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=gustavo.romero@linaro.org; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Use Python's raw string notation instead of string literals for regex so it's not necessary to double backslashes when regex special forms are used. Raw notation is preferred for regex and easier to read. Signed-off-by: Gustavo Romero Reviewed-by: Philippe Mathieu-Daudé --- tests/tcg/aarch64/gdbstub/test-mte.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tcg/aarch64/gdbstub/test-mte.py b/tests/tcg/aarch64/gdbstub/test-mte.py index a4cae6caa0..9ad98e7a54 100644 --- a/tests/tcg/aarch64/gdbstub/test-mte.py +++ b/tests/tcg/aarch64/gdbstub/test-mte.py @@ -23,8 +23,8 @@ from test_gdbstub import arg_parser, main, report -PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \\(0x[0-9a-f]+\\)." -PATTERN_1 = ".*(0x[0-9a-f]+)" +PATTERN_0 = r"Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)." +PATTERN_1 = r".*(0x[0-9a-f]+)" def run_test():