From: Alexander Kanavin Date: Mon, 28 Dec 2020 20:04:35 +0000 (+0100) Subject: runtime_test.py: correct output check for bash 5.1 X-Git-Tag: uninative-2.10~171 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=c25a1b16cc50e51ecf040c2c1db128e1dfceddec;p=openembedded-core.git 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. Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- 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): # 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)