summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/ssh.py
blob: cb7b2cf5e78c7bd45a5fa25cf356e2f722077617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
from oeqa.runtime.decorator.package import OEHasPackage

class SSHTest(OERuntimeTestCase):

    @OETestDepends(['ping.PingTest.test_ping'])
    @OEHasPackage(['dropbear', 'openssh-sshd'])
    def test_ssh(self):
        self.target.run('uname -a')
        # Check that controllerimage doesn't exist
        self.target.run('test ! -f /etc/controllerimage')