mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
runtime_test.py: correct output check for bash 5.1
Bash 5.1 inserts escape sequences into its output (specifically disabling bracketed paste mode via \x1b[?2004l). I am not sure if somehow terminal detection isn't working correctly there, but in any case the marker is still in the output, but needs to be checked by 'in' rather than exact equivalence. (From OE-Core rev: c25a1b16cc50e51ecf040c2c1db128e1dfceddec) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0c738cad8e
commit
f2467c6925
@@ -276,7 +276,7 @@ class Postinst(OESelftestTestCase):
|
||||
# run_serial()'s status code is useless.'
|
||||
for filename in ("rootfs", "delayed-a", "delayed-b"):
|
||||
status, output = qemu.run_serial("test -f %s && echo found" % os.path.join(targettestdir, filename))
|
||||
self.assertEqual(output, "found", "%s was not present on boot" % filename)
|
||||
self.assertIn("found", output, "%s was not present on boot" % filename)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user