summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/ssh.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-19 09:59:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-11 11:44:19 +0000
commit261a1409b1dad8673bc9de68c2ee949e2ec1ca0b (patch)
treef42bc851a52463f1d2b4b7ffdca8c7e7651a4af3 /meta/lib/oeqa/runtime/cases/ssh.py
parenta24b1786664ce8086f4e5b40843adc35bb2de736 (diff)
downloadpoky-261a1409b1dad8673bc9de68c2ee949e2ec1ca0b.tar.gz
oeqa/runtime: Add debugging if networking fails
If networking fails, we can get useful informaiton over the serial connection. Add this fallback code so that any issues can be more easily debugged by showing the host and target networking states. (From OE-Core rev: 3291f9d07ecfe7d3301dc914f5e6a80577cf1d5d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/ssh.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/ssh.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py
index 89d64430e5..b632a29a01 100644
--- a/meta/lib/oeqa/runtime/cases/ssh.py
+++ b/meta/lib/oeqa/runtime/cases/ssh.py
@@ -7,7 +7,7 @@
7import time 7import time
8import signal 8import signal
9 9
10from oeqa.runtime.case import OERuntimeTestCase 10from oeqa.runtime.case import OERuntimeTestCase, run_network_serialdebug
11from oeqa.core.decorator.depends import OETestDepends 11from oeqa.core.decorator.depends import OETestDepends
12from oeqa.runtime.decorator.package import OEHasPackage 12from oeqa.runtime.decorator.package import OEHasPackage
13 13
@@ -32,6 +32,7 @@ class SSHTest(OERuntimeTestCase):
32 time.sleep(5) 32 time.sleep(5)
33 continue 33 continue
34 else: 34 else:
35 run_network_serialdebug(self.target.runner)
35 self.fail("uname failed with \"%s\" (exit code %s)" % (output, status)) 36 self.fail("uname failed with \"%s\" (exit code %s)" % (output, status))
36 if status != 0: 37 if status != 0:
37 self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status)) 38 self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))