diff mbox series

[2/6] oeqa runtime ssh.py: make run_network_serialdebug() specific to qemu

Message ID 20250627063004.781560-2-mikko.rapeli@linaro.org
State New
Headers show
Series [1/6] oeqa runtime ping.py: make run_network_serialdebug() specific to qemu | expand

Commit Message

Mikko Rapeli June 27, 2025, 6:30 a.m. UTC
ssh and serial port runner targets don't support separate
serial port communication channels.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta/lib/oeqa/runtime/cases/ssh.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py
index b632a29a0178..7fdad564a2d7 100644
--- a/meta/lib/oeqa/runtime/cases/ssh.py
+++ b/meta/lib/oeqa/runtime/cases/ssh.py
@@ -10,6 +10,7 @@  import signal
 from oeqa.runtime.case import OERuntimeTestCase, run_network_serialdebug
 from oeqa.core.decorator.depends import OETestDepends
 from oeqa.runtime.decorator.package import OEHasPackage
+from oeqa.core.target.qemu import OEQemuTarget
 
 class SSHTest(OERuntimeTestCase):
 
@@ -32,7 +33,8 @@  class SSHTest(OERuntimeTestCase):
               time.sleep(5)
               continue
           else:
-              run_network_serialdebug(self.target.runner)
+              if isinstance(self.target, OEQemuTarget):
+                  run_network_serialdebug(self.target.runner)
               self.fail("uname failed with \"%s\" (exit code %s)" % (output, status))
         if status != 0:
             self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))