[PING] [contrib] validate_failures.py: fix python 3.12 escape sequence warnings

2024-05-14 Thread Gabi Falk
Hi,

This one still needs review:

https://inbox.sourceware.org/gcc-patches/20240415233833.104460-1-gabif...@gmx.com/

--
gabi


Re: [PING] [contrib] validate_failures.py: fix python 3.12 escape sequence warnings

2024-06-09 Thread Gabi Falk
Hi,

On Sat, Jun 08, 2024 at 03:34:02PM -0600, Jeff Law wrote:
> On 5/14/24 8:12 AM, Gabi Falk wrote:
> > Hi,
> >
> > This one still needs review:
> >
> > https://inbox.sourceware.org/gcc-patches/20240415233833.104460-1-gabif...@gmx.com/
> I think I just ACK'd an equivalent patch from someone else this week.

Looks like it hasn't been merged yet, and I couldn't find it in the
mailing list archive.
Anyway, I hope either one gets merged soon. :)

--
gabi


[PATCH] [contrib] validate_failures.py: fix python 3.12 escape sequence warnings

2024-04-15 Thread Gabi Falk
The warnings:
contrib/testsuite-management/validate_failures.py:65: SyntaxWarning: invalid 
escape sequence '\s'
  _VALID_TEST_RESULTS_REX = re.compile('(%s):\s*(\S+)\s*(.*)'
contrib/testsuite-management/validate_failures.py:77: SyntaxWarning: invalid 
escape sequence '\.'
  _EXP_LINE_REX = re.compile('^Running (?:.*:)?(.*) \.\.\.\n')

contrib/ChangeLog:
* testsuite-management/validate_failures.py: Change re.compile()
function arguments to Python raw strings.

Link: https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
Link: https://github.com/python/cpython/issues/98401
Signed-off-by: Gabi Falk 
---
 contrib/testsuite-management/validate_failures.py | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/testsuite-management/validate_failures.py 
b/contrib/testsuite-management/validate_failures.py
index f81ac4f135d2..e5188bbf105c 100755
--- a/contrib/testsuite-management/validate_failures.py
+++ b/contrib/testsuite-management/validate_failures.py
@@ -62,7 +62,7 @@ import sys

 _VALID_TEST_RESULTS = [ 'FAIL', 'UNRESOLVED', 'XPASS', 'ERROR' ]
 # :