Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/6] oeqa runtime ping.py: make run_network_serialdebug() specific to qemu
@ 2025-06-27  6:29 Mikko Rapeli
  2025-06-27  6:30 ` [PATCH 2/6] oeqa runtime ssh.py: " Mikko Rapeli
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Mikko Rapeli @ 2025-06-27  6:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mikko Rapeli

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))
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-06-30  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox