diff options
author | Jon Mason <jdmason@kudzu.us> | 2024-07-04 16:31:56 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-08 09:17:09 +0100 |
commit | 8d405ba864005083e5e45418a4cc8494e4875f20 (patch) | |
tree | 2a9685c6fe38b79fe7b0abdb788e7b9a34e5d720 /meta/lib | |
parent | 0979646a1bd224e3690380ab9fb3e0079bcafcf4 (diff) | |
download | poky-8d405ba864005083e5e45418a4cc8494e4875f20.tar.gz |
oeqa/runtime/ssh: check for all errors at the end
With the retry for the -SIGTERM, it is possible to still see that error
after the 5th attempt and mark the run a success. Check for any
non-zero status in the final check and error out to close the gap.
While there, make the error print match the one above and be a little
more verbose. Also, I'm seeing it take roughly 6 attempts on my local
(very slow) system to pass. So, increasing the number of attempts to
10.
(From OE-Core rev: 3c3ebe591eef6e0479d623ec2237cfea16db5c80)
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ssh.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py index 9a8deb3f25..08430ae9db 100644 --- a/meta/lib/oeqa/runtime/cases/ssh.py +++ b/meta/lib/oeqa/runtime/cases/ssh.py | |||
@@ -16,7 +16,7 @@ class SSHTest(OERuntimeTestCase): | |||
16 | @OETestDepends(['ping.PingTest.test_ping']) | 16 | @OETestDepends(['ping.PingTest.test_ping']) |
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(10): |
20 | status, output = self.target.run("uname -a", timeout=5) | 20 | status, output = self.target.run("uname -a", timeout=5) |
21 | if status == 0: | 21 | if status == 0: |
22 | break | 22 | break |
@@ -33,5 +33,5 @@ class SSHTest(OERuntimeTestCase): | |||
33 | continue | 33 | continue |
34 | else: | 34 | else: |
35 | self.fail("uname failed with \"%s\" (exit code %s)" % (output, status)) | 35 | self.fail("uname failed with \"%s\" (exit code %s)" % (output, status)) |
36 | if status == 255: | 36 | if status != 0: |
37 | self.fail("ssh error %s" %output) | 37 | self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status)) |