]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
selftest: gdbserver: Adjust regex for change to output
authorAlex Kiernan <alex.kiernan@gmail.com>
Sat, 15 Mar 2025 10:24:40 +0000 (10:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Mar 2025 16:35:53 +0000 (16:35 +0000)
The updated kmod build (using meson) causes the output which results from `info
line kmod_help` to change. Relax the regex so that both old and new reponses
will pass.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/gdbserver.py

index 9da97ae78037bfd13434e93cf235c62fbbcb66fe..b6b7c5c47337453a49d4aa90166e148eab9038b6 100644 (file)
@@ -54,7 +54,7 @@ CORE_IMAGE_EXTRA_INSTALL = "gdbserver"
                             self.logger.warning("starting gdb %s" % cmd)
                             r = runCmd(cmd, native_sysroot=native_sysroot, target_sys=target_sys)
                             self.assertEqual(0, r.status)
-                            line_re = r"Line \d+ of \"/usr/src/debug/kmod/.*/tools/kmod.c\" starts at address 0x[0-9A-Fa-f]+ <kmod_help>"
+                            line_re = r"Line \d+ of \".*\" starts at address 0x[0-9A-Fa-f]+ <kmod_help>"
                             self.assertRegex(r.output, line_re)
                             break
                         else: