From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: mikko.rapeli@linaro.org, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 1/6] oeqa runtime ping.py: make run_network_serialdebug() specific to qemu
Date: Sun, 29 Jun 2025 08:06:53 +0100 [thread overview]
Message-ID: <8e1a855a274565f4e6facd4f7cb747e461b2cd8f.camel@linuxfoundation.org> (raw)
In-Reply-To: <20250627063004.781560-1-mikko.rapeli@linaro.org>
On Fri, 2025-06-27 at 09:29 +0300, Mikko Rapeli via lists.openembedded.org wrote:
> Only qemu runner supports self.targets.runner. ssh runner does not
> define this and on error path this function causes another exception.
>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> ---
> meta/lib/oeqa/runtime/cases/ping.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/lib/oeqa/runtime/cases/ping.py b/meta/lib/oeqa/runtime/cases/ping.py
> index efb91d4cc9da..515d376602bd 100644
> --- a/meta/lib/oeqa/runtime/cases/ping.py
> +++ b/meta/lib/oeqa/runtime/cases/ping.py
> @@ -10,6 +10,7 @@ from time import sleep
> from oeqa.runtime.case import OERuntimeTestCase, run_network_serialdebug
> from oeqa.core.decorator.oetimeout import OETimeout
> from oeqa.core.exception import OEQATimeoutError
> +from oeqa.core.target.qemu import OEQemuTarget
>
> class PingTest(OERuntimeTestCase):
>
> @@ -36,7 +37,8 @@ class PingTest(OERuntimeTestCase):
> count = 0
> sleep(1)
> except OEQATimeoutError:
> - run_network_serialdebug(self.target.runner)
> + if isinstance(self.target, OEQemuTarget):
> + run_network_serialdebug(self.target.runner)
> self.fail("Ping timeout error for address %s, count %s, output: %s" % (self.target.ip, count, output))
> msg = ('Expected 5 consecutive, got %d.\n'
> 'ping output is:\n%s' % (count,output))
Rather than make the tests target runner specific, should we put a
dummy function in the main class, then backends can support this if
they can/want to?
Cheers,
Richard
prev parent reply other threads:[~2025-06-29 7:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 6:29 [PATCH 1/6] oeqa runtime ping.py: make run_network_serialdebug() specific to qemu Mikko Rapeli
2025-06-27 6:30 ` [PATCH 2/6] oeqa runtime ssh.py: " Mikko Rapeli
2025-06-27 6:30 ` [PATCH 3/6] oeqa runtime apt.py: check errors and fix quoting Mikko Rapeli
2025-06-27 6:30 ` [PATCH 4/6] oeqa context.py: use TEST_SUITES if set Mikko Rapeli
2025-06-27 6:30 ` [PATCH 5/6] testexport.bbclass oe-test: capture tests and data from all layers Mikko Rapeli
2025-06-29 7:05 ` [OE-core] " Richard Purdie
2025-06-30 8:10 ` Mikko Rapeli
2025-06-27 6:30 ` [PATCH 6/6] oeqa parselogs: add parselogs-ignores-genericarm64.txt Mikko Rapeli
2025-06-27 6:48 ` Patchtest results for " patchtest
2025-06-27 13:41 ` [OE-core] [PATCH 1/6] oeqa runtime ping.py: make run_network_serialdebug() specific to qemu Antonin Godard
2025-06-29 7:06 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e1a855a274565f4e6facd4f7cb747e461b2cd8f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=mikko.rapeli@linaro.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox