aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-10-23 12:34:02 +0100
committerAlex Bennée <alex.bennee@linaro.org>2024-10-24 09:56:42 +0100
commitbb77c68dbd54931b7bb4a3385021f2c43ed61f3e (patch)
treef3e0418971b0e6369dca4d09f6c290e9d23418e7
parent2e1cacfb8a1e2d84c787fc1f34937a309fbe65ce (diff)
downloadqemu-bb77c68dbd54931b7bb4a3385021f2c43ed61f3e.zip
qemu-bb77c68dbd54931b7bb4a3385021f2c43ed61f3e.tar.gz
qemu-bb77c68dbd54931b7bb4a3385021f2c43ed61f3e.tar.bz2
tests/tcg/aarch64: Use raw strings for regexes in test-mte.py
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 <gustavo.romero@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20241015140806.385449-1-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20241023113406.1284676-15-alex.bennee@linaro.org>
-rw-r--r--tests/tcg/aarch64/gdbstub/test-mte.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcg/aarch64/gdbstub/test-mte.py b/tests/tcg/aarch64/gdbstub/test-mte.py
index a4cae6c..9ad98e7 100644
--- a/tests/tcg/aarch64/gdbstub/test-mte.py
+++ b/tests/tcg/aarch64/gdbstub/test-mte.py
@@ -23,8 +23,8 @@ from sys import argv
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():