1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-08 05:09:56 +00:00

arm/oeqa: Fix regex warning in linuxboot test case

The linuxboot test case prints the following in log.do_testimage, only
when executing testimage without a pycache:

  linuxboot.py:18: DeprecationWarning: invalid escape sequence \:
    self.target.expect(self.console, "login\:", timeout=10*60)

Fix the warning by escaping the ':' character correctly in the pexpect
regex.

Issue-Id: SCM-4957
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I8ad54c7df6b7d1d1ddeab31cf66daff1ab84e227
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Peter Hoyes
2022-07-26 16:35:36 +01:00
committed by Jon Mason
parent d11e253b11
commit ef879b5fb8
+1 -1
View File
@@ -15,4 +15,4 @@ class LinuxBootTest(OERuntimeTestCase):
def test_linux_boot(self):
self.logger.info(f"{self.console}: Waiting for login prompt")
self.target.expect(self.console, "login\:", timeout=10*60)
self.target.expect(self.console, r"login\:", timeout=10*60)