diff options
| author | Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> | 2025-10-07 19:38:09 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-09 10:58:07 +0100 |
| commit | 966c7746037d79a3663cd9d3864051e74c60d01e (patch) | |
| tree | 70cc1dcebc00001cca068264eb8cc075407664cd | |
| parent | 0cbe95e5aefac6fa7154d4d2b61e36785f405de0 (diff) | |
| download | poky-966c7746037d79a3663cd9d3864051e74c60d01e.tar.gz | |
oeqa: runtime: ssh: Manage any SSH failure locally
This is the SSH test, it makes sense to ignore SSH failures in the SSH
helper and manage them in the test body.
(From OE-Core rev: 2281fd4c10e38a3cad3050b7a21a72cc7b09e718)
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py index b632a29a01..3e9503277e 100644 --- a/meta/lib/oeqa/runtime/cases/ssh.py +++ b/meta/lib/oeqa/runtime/cases/ssh.py | |||
| @@ -17,7 +17,7 @@ class SSHTest(OERuntimeTestCase): | |||
| 17 | @OEHasPackage(['dropbear', 'openssh-sshd']) | 17 | @OEHasPackage(['dropbear', 'openssh-sshd']) |
| 18 | def test_ssh(self): | 18 | def test_ssh(self): |
| 19 | for i in range(5): | 19 | for i in range(5): |
| 20 | status, output = self.target.run("uname -a", timeout=30) | 20 | status, output = self.target.run("uname -a", timeout=30, ignore_ssh_fails=True) |
| 21 | if status == 0: | 21 | if status == 0: |
| 22 | break | 22 | break |
| 23 | elif status == 255 or status == -signal.SIGTERM: | 23 | elif status == 255 or status == -signal.SIGTERM: |
