Message ID | 20220726153536.3573383-1-peter.hoyes@arm.com |
---|---|
State | New |
Headers | show |
Series | arm/oeqa: Fix regex warning in linuxboot test case | expand |
On Tue, 26 Jul 2022 16:35:36 +0100, Peter Hoyes wrote: > 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. Applied, thanks! [1/1] arm/oeqa: Fix regex warning in linuxboot test case commit: ef879b5fb87910b80ed19e7bf036d3c6b0684f89 Best regards,
On 26/07/2022 21:48, Jon Mason wrote: > On Tue, 26 Jul 2022 16:35:36 +0100, Peter Hoyes wrote: >> 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. > Applied, thanks! > > [1/1] arm/oeqa: Fix regex warning in linuxboot test case > commit: ef879b5fb87910b80ed19e7bf036d3c6b0684f89 > > Best regards, Please can this patch be backported to kirkstone.
On Wed, Jul 27, 2022 at 10:29:22AM +0100, Peter Hoyes wrote: > On 26/07/2022 21:48, Jon Mason wrote: > > On Tue, 26 Jul 2022 16:35:36 +0100, Peter Hoyes wrote: > > > 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. > > Applied, thanks! > > > > [1/1] arm/oeqa: Fix regex warning in linuxboot test case > > commit: ef879b5fb87910b80ed19e7bf036d3c6b0684f89 > > > > Best regards, > Please can this patch be backported to kirkstone. > Done
diff --git a/meta-arm/lib/oeqa/runtime/cases/linuxboot.py b/meta-arm/lib/oeqa/runtime/cases/linuxboot.py index 19e6e18..8994405 100644 --- a/meta-arm/lib/oeqa/runtime/cases/linuxboot.py +++ b/meta-arm/lib/oeqa/runtime/cases/linuxboot.py @@ -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)