aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oeqa/runtime/cases/firejail.py
blob: 88a8dda210166527ebf64972943853df6f689f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (C) 2022 Armin Kuster <akuster808@gmail.com>
#
import re

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

class FirejailTest(OERuntimeTestCase):

    @OEHasPackage(['firejail'])
    @OEHasPackage(['libseccomp'])
    @OETestDepends(['ssh.SSHTest.test_ssh'])
    def test_firejail_basic(self):
        status, output = self.target.run('firejail --help')
        msg = ('Firejail --help command does not work as expected. '
               'Status and output:%s and %s' % (status, output))
        self.assertEqual(status, 0, msg = msg)