@@ -16,7 +16,7 @@ class SSHTest(OERuntimeTestCase):
@OETestDepends(['ping.PingTest.test_ping'])
@OEHasPackage(['dropbear', 'openssh-sshd'])
def test_ssh(self):
- for i in range(5):
+ for i in range(10):
status, output = self.target.run("uname -a", timeout=5)
if status == 0:
break
@@ -33,5 +33,5 @@ class SSHTest(OERuntimeTestCase):
continue
else:
self.fail("uname failed with \"%s\" (exit code %s)" % (output, status))
- if status == 255:
- self.fail("ssh error %s" %output)
+ if status != 0:
+ self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))