All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/5] oeqa runtime: set self.runner and handle None
@ 2025-07-02  7:25 Mikko Rapeli
  2025-07-02  7:25 ` [PATCH v3 2/5] oeqa context.py: use TEST_SUITES if set Mikko Rapeli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mikko Rapeli @ 2025-07-02  7:25 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mikko Rapeli

Set default self.runner to None. qemu target sets
the runner to qemu. Then handle self.runner None in
run_network_serialdebug(). This way ssh runner
and failing ping or ssh tests handle the error cases.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta/lib/oeqa/core/target/__init__.py | 1 +
 meta/lib/oeqa/runtime/case.py         | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/meta/lib/oeqa/core/target/__init__.py b/meta/lib/oeqa/core/target/__init__.py
index 1382aa9b5239..177f648fe358 100644
--- a/meta/lib/oeqa/core/target/__init__.py
+++ b/meta/lib/oeqa/core/target/__init__.py
@@ -10,6 +10,7 @@ class OETarget(object):
 
     def __init__(self, logger, *args, **kwargs):
         self.logger = logger
+        self.runner = None
 
     @abstractmethod
     def start(self):
diff --git a/meta/lib/oeqa/runtime/case.py b/meta/lib/oeqa/runtime/case.py
index 9515ca2f3d62..2a47771a3d47 100644
--- a/meta/lib/oeqa/runtime/case.py
+++ b/meta/lib/oeqa/runtime/case.py
@@ -23,6 +23,8 @@ class OERuntimeTestCase(OETestCase):
         uninstall_package(self)
 
 def run_network_serialdebug(runner):
+    if not runner:
+        return
     status, output = runner.run_serial("ip addr")
     print("ip addr on target: %s %s" % (output, status))
     status, output = runner.run_serial("ping -c 1 %s" % self.target.server_ip)
-- 
2.43.0



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

end of thread, other threads:[~2025-07-14 12:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02  7:25 [PATCH v3 1/5] oeqa runtime: set self.runner and handle None Mikko Rapeli
2025-07-02  7:25 ` [PATCH v3 2/5] oeqa context.py: use TEST_SUITES if set Mikko Rapeli
2025-07-02  7:25 ` [PATCH v3 3/5] testexport.bbclass oe-test: capture all tests and data from all layers Mikko Rapeli
2025-07-05 16:07   ` [OE-core] " Richard Purdie
2025-07-07  7:16     ` Mikko Rapeli
2025-07-02  7:25 ` [PATCH v3 4/5] testexport.bbclass: use image suffix in testexport tar ball name Mikko Rapeli
2025-07-14 12:08   ` [OE-core] " Richard Purdie
2025-07-14 12:26     ` Mikko Rapeli

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.