* [PATCH] arm/oeqa: Fix regex warning in linuxboot test case
@ 2022-07-26 15:35 Peter Hoyes
2022-07-26 20:48 ` Jon Mason
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hoyes @ 2022-07-26 15:35 UTC (permalink / raw)
To: meta-arm; +Cc: diego.sueiro, Peter Hoyes
From: Peter Hoyes <Peter.Hoyes@arm.com>
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
---
meta-arm/lib/oeqa/runtime/cases/linuxboot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm/oeqa: Fix regex warning in linuxboot test case
2022-07-26 15:35 [PATCH] arm/oeqa: Fix regex warning in linuxboot test case Peter Hoyes
@ 2022-07-26 20:48 ` Jon Mason
2022-07-27 9:29 ` Peter Hoyes
0 siblings, 1 reply; 4+ messages in thread
From: Jon Mason @ 2022-07-26 20:48 UTC (permalink / raw)
To: meta-arm, Peter Hoyes; +Cc: diego.sueiro, Peter Hoyes
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,
--
Jon Mason <jon.mason@arm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm/oeqa: Fix regex warning in linuxboot test case
2022-07-26 20:48 ` Jon Mason
@ 2022-07-27 9:29 ` Peter Hoyes
2022-07-27 21:53 ` Jon Mason
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hoyes @ 2022-07-27 9:29 UTC (permalink / raw)
To: Jon Mason, meta-arm; +Cc: diego.sueiro
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm/oeqa: Fix regex warning in linuxboot test case
2022-07-27 9:29 ` Peter Hoyes
@ 2022-07-27 21:53 ` Jon Mason
0 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-07-27 21:53 UTC (permalink / raw)
To: Peter Hoyes; +Cc: meta-arm, diego.sueiro
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-27 21:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 15:35 [PATCH] arm/oeqa: Fix regex warning in linuxboot test case Peter Hoyes
2022-07-26 20:48 ` Jon Mason
2022-07-27 9:29 ` Peter Hoyes
2022-07-27 21:53 ` Jon Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.