diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-19 09:59:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-11 11:44:19 +0000 |
commit | 261a1409b1dad8673bc9de68c2ee949e2ec1ca0b (patch) | |
tree | f42bc851a52463f1d2b4b7ffdca8c7e7651a4af3 /meta/lib/oeqa/runtime/cases/ssh.py | |
parent | a24b1786664ce8086f4e5b40843adc35bb2de736 (diff) | |
download | poky-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.py | 3 |
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 @@ | |||
7 | import time | 7 | import time |
8 | import signal | 8 | import signal |
9 | 9 | ||
10 | from oeqa.runtime.case import OERuntimeTestCase | 10 | from oeqa.runtime.case import OERuntimeTestCase, run_network_serialdebug |
11 | from oeqa.core.decorator.depends import OETestDepends | 11 | from oeqa.core.decorator.depends import OETestDepends |
12 | from oeqa.runtime.decorator.package import OEHasPackage | 12 | from 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)) |