diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-12-28 21:04:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-20 22:46:17 +0000 |
commit | f2467c692531eb0d13382f0308187423dadf4c7e (patch) | |
tree | db6a3c26c13dcf512da31a025094c4bf94d90a87 /meta/lib | |
parent | 0c738cad8e4ef1298e30e445cecc2a87b7dafbd5 (diff) | |
download | poky-f2467c692531eb0d13382f0308187423dadf4c7e.tar.gz |
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>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 7189e4e6c5..b20c5b427b 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
@@ -276,7 +276,7 @@ class Postinst(OESelftestTestCase): | |||
276 | # run_serial()'s status code is useless.' | 276 | # run_serial()'s status code is useless.' |
277 | for filename in ("rootfs", "delayed-a", "delayed-b"): | 277 | for filename in ("rootfs", "delayed-a", "delayed-b"): |
278 | status, output = qemu.run_serial("test -f %s && echo found" % os.path.join(targettestdir, filename)) | 278 | status, output = qemu.run_serial("test -f %s && echo found" % os.path.join(targettestdir, filename)) |
279 | self.assertEqual(output, "found", "%s was not present on boot" % filename) | 279 | self.assertIn("found", output, "%s was not present on boot" % filename) |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||