oeqa/runtime: set self.runner and handle None

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.

(From OE-Core rev: 39f72147ef402bea54a66abf984315c1f93aa141)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mikko Rapeli authored and Richard Purdie committed 2025-07-03 10:40:17 +01:00
1 parent 12a735bf25
commit 2d900c3061
2 files changed
+3

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ class OETarget(object):
def __init__(self, logger, *args, **kwargs):
self.logger = logger
self.runner = None
@abstractmethod
def start(self):
+2
View File
@@ -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)