qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/tcg/aarch64: Fix test-mte.py
@ 2024-07-19  0:41 Richard Henderson
  2024-07-19  0:49 ` Pierrick Bouvier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Henderson @ 2024-07-19  0:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: gustavo.romero, alex.bennee

Python 3.12 warns:

  TEST    gdbstub MTE support on aarch64
/home/rth/qemu/src/tests/tcg/aarch64/gdbstub/test-mte.py:21: SyntaxWarning: invalid escape sequence '\('
  PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."

Double up the \ to pass one through to the pattern.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 tests/tcg/aarch64/gdbstub/test-mte.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tcg/aarch64/gdbstub/test-mte.py b/tests/tcg/aarch64/gdbstub/test-mte.py
index 2db0663c1a..66f9c25f8a 100644
--- a/tests/tcg/aarch64/gdbstub/test-mte.py
+++ b/tests/tcg/aarch64/gdbstub/test-mte.py
@@ -18,7 +18,7 @@
 from test_gdbstub import main, report
 
 
-PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
+PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \\(0x[0-9a-f]+\\)."
 PATTERN_1 = ".*(0x[0-9a-f]+)"
 
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/tcg/aarch64: Fix test-mte.py
  2024-07-19  0:41 [PATCH] tests/tcg/aarch64: Fix test-mte.py Richard Henderson
@ 2024-07-19  0:49 ` Pierrick Bouvier
  2024-07-19  7:14 ` Philippe Mathieu-Daudé
  2024-07-19  8:55 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Pierrick Bouvier @ 2024-07-19  0:49 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: gustavo.romero, alex.bennee

On 7/18/24 17:41, Richard Henderson wrote:
> Python 3.12 warns:
> 
>    TEST    gdbstub MTE support on aarch64
> /home/rth/qemu/src/tests/tcg/aarch64/gdbstub/test-mte.py:21: SyntaxWarning: invalid escape sequence '\('
>    PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
> 
> Double up the \ to pass one through to the pattern.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tests/tcg/aarch64/gdbstub/test-mte.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/tcg/aarch64/gdbstub/test-mte.py b/tests/tcg/aarch64/gdbstub/test-mte.py
> index 2db0663c1a..66f9c25f8a 100644
> --- a/tests/tcg/aarch64/gdbstub/test-mte.py
> +++ b/tests/tcg/aarch64/gdbstub/test-mte.py
> @@ -18,7 +18,7 @@
>   from test_gdbstub import main, report
>   
>   
> -PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
> +PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \\(0x[0-9a-f]+\\)."
>   PATTERN_1 = ".*(0x[0-9a-f]+)"
>   
>   

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/tcg/aarch64: Fix test-mte.py
  2024-07-19  0:41 [PATCH] tests/tcg/aarch64: Fix test-mte.py Richard Henderson
  2024-07-19  0:49 ` Pierrick Bouvier
@ 2024-07-19  7:14 ` Philippe Mathieu-Daudé
  2024-07-19  8:55 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-07-19  7:14 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: gustavo.romero, alex.bennee

On 19/7/24 02:41, Richard Henderson wrote:
> Python 3.12 warns:
> 
>    TEST    gdbstub MTE support on aarch64
> /home/rth/qemu/src/tests/tcg/aarch64/gdbstub/test-mte.py:21: SyntaxWarning: invalid escape sequence '\('
>    PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
> 
> Double up the \ to pass one through to the pattern.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tests/tcg/aarch64/gdbstub/test-mte.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/tcg/aarch64: Fix test-mte.py
  2024-07-19  0:41 [PATCH] tests/tcg/aarch64: Fix test-mte.py Richard Henderson
  2024-07-19  0:49 ` Pierrick Bouvier
  2024-07-19  7:14 ` Philippe Mathieu-Daudé
@ 2024-07-19  8:55 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2024-07-19  8:55 UTC (permalink / raw)
  To: Richard Henderson; +Cc: qemu-devel, gustavo.romero

Richard Henderson <richard.henderson@linaro.org> writes:

> Python 3.12 warns:
>
>   TEST    gdbstub MTE support on aarch64
> /home/rth/qemu/src/tests/tcg/aarch64/gdbstub/test-mte.py:21: SyntaxWarning: invalid escape sequence '\('
>   PATTERN_0 = "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
>
> Double up the \ to pass one through to the pattern.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Queued to maintainer/for-9.1-rc0, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-19  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19  0:41 [PATCH] tests/tcg/aarch64: Fix test-mte.py Richard Henderson
2024-07-19  0:49 ` Pierrick Bouvier
2024-07-19  7:14 ` Philippe Mathieu-Daudé
2024-07-19  8:55 ` Alex Bennée

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).