From cb617016496cb6c087ca562e428046216422ea92 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 3 Sep 2025 16:40:47 +0200 Subject: [PATCH] test-client: fix quotation in expected message With the newer glib and libc in F42 and Ubuntu devel, the "{left,right} double quotation mark" characters are printed in the output message. The double quotation marks are multi-byte characters and they can't be matched using a character class []. Update the regexp accordingly. (cherry picked from commit 5ad712974e6216d178691feaeb4e4b66b4f5d835) --- src/tests/client/test-client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index cc76d37b5e..800800569f 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -2247,9 +2247,9 @@ class TestNmcli(unittest.TestCase): extra_env=no_dbus_env, replace_stderr=[ Util.ReplaceTextRegex( - # depending on glib version, it prints `%s', '%s', or ā€œ%sā€. - # depending on libc version, it converts unicode to ? or *. - r"Key/Value pair 0, [`*?']invalid[*?'], in address element [`*?']very:invalid[*?'] does not contain an equal sign", + # Depending on glib version, it prints `%s', '%s', or ā€œ%sā€. + # Some libc versions convert the multi-byte UTF-8 sequence to ? or *. + r"Key/Value pair 0, .*invalid.*, in address element .*very:invalid.* does not contain an equal sign", "Key/Value pair 0, 'invalid', in address element 'very:invalid' does not contain an equal sign", ) ],