aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/ssh.py
blob: 8c96020e54ef465c4aba62e554b9f97c0dcce3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import subprocess
import unittest
import sys
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *

def setUpModule():
    if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh")):
        skipModule("No ssh package in image")

class SshTest(oeRuntimeTest):

    @skipUnlessPassed('test_ping')
    def test_ssh(self):
        (status, output) = self.target.run('uname -a')
        self.assertEqual(status, 0, msg="SSH Test failed: %s" % output)