diff options
author | Saul Wold <Saul.Wold@windriver.com> | 2020-09-28 14:23:13 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-30 15:01:51 +0100 |
commit | 78b473e7f86343bd5520a61c60cc5c72d05fdc27 (patch) | |
tree | cc3ebf1baf0fe7db87dc5e42ba6b5a50959ad3ca /meta/lib | |
parent | 406857b019f25e955a20ebd8fa71142b67258f84 (diff) | |
download | poky-78b473e7f86343bd5520a61c60cc5c72d05fdc27.tar.gz |
target/ssh.py: Add dump_target support
This adds the dump_target support when the ssh command fails with
a 'No route to host'. This is will provide additional data when a
Qemu target fails to respond during autobuilder testing. This does
not fix 14002 [0], but may help track down why qemu looses networking
[0] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14002
(From OE-Core rev: cef1a2b03b359c018911abc29db1895d0f46814c)
Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/target/ssh.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py index aefb576805..461448dbc5 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py | |||
@@ -88,6 +88,8 @@ class OESSHTarget(OETarget): | |||
88 | 88 | ||
89 | status, output = self._run(sshCmd, processTimeout, True) | 89 | status, output = self._run(sshCmd, processTimeout, True) |
90 | self.logger.debug('Command: %s\nOutput: %s\n' % (command, output)) | 90 | self.logger.debug('Command: %s\nOutput: %s\n' % (command, output)) |
91 | if (status == 255) and (('No route to host') in output): | ||
92 | self.target_dumper.dump_target() | ||
91 | return (status, output) | 93 | return (status, output) |
92 | 94 | ||
93 | def copyTo(self, localSrc, remoteDst): | 95 | def copyTo(self, localSrc, remoteDst): |