diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/ssh.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ssh.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py index 60a5fbbfbf..cdbef59500 100644 --- a/meta/lib/oeqa/runtime/cases/ssh.py +++ b/meta/lib/oeqa/runtime/cases/ssh.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | 6 | ||
@@ -11,9 +13,12 @@ class SSHTest(OERuntimeTestCase): | |||
11 | @OETestDepends(['ping.PingTest.test_ping']) | 13 | @OETestDepends(['ping.PingTest.test_ping']) |
12 | @OEHasPackage(['dropbear', 'openssh-sshd']) | 14 | @OEHasPackage(['dropbear', 'openssh-sshd']) |
13 | def test_ssh(self): | 15 | def test_ssh(self): |
16 | (status, output) = self.target.run('sleep 20', timeout=2) | ||
17 | msg='run() timed out but return code was zero.' | ||
18 | self.assertNotEqual(status, 0, msg=msg) | ||
14 | (status, output) = self.target.run('uname -a') | 19 | (status, output) = self.target.run('uname -a') |
15 | self.assertEqual(status, 0, msg='SSH Test failed: %s' % output) | 20 | self.assertEqual(status, 0, msg='SSH Test failed: %s' % output) |
16 | (status, output) = self.target.run('cat /etc/masterimage') | 21 | (status, output) = self.target.run('cat /etc/controllerimage') |
17 | msg = "This isn't the right image - /etc/masterimage " \ | 22 | msg = "This isn't the right image - /etc/controllerimage " \ |
18 | "shouldn't be here %s" % output | 23 | "shouldn't be here %s" % output |
19 | self.assertEqual(status, 1, msg=msg) | 24 | self.assertEqual(status, 1, msg=msg) |