Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 1 | # Copyright (C) 2022 Armin Kuster <akuster808@gmail.com> |
| 2 | # |
| 3 | import re |
| 4 | |
| 5 | from oeqa.runtime.case import OERuntimeTestCase |
| 6 | from oeqa.core.decorator.depends import OETestDepends |
| 7 | from oeqa.runtime.decorator.package import OEHasPackage |
| 8 | |
| 9 | class FirejailTest(OERuntimeTestCase): |
| 10 | |
| 11 | @OEHasPackage(['firejail']) |
| 12 | @OEHasPackage(['libseccomp']) |
| 13 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 14 | def test_firejail_basic(self): |
| 15 | status, output = self.target.run('firejail --help') |
| 16 | msg = ('Firejail --help command does not work as expected. ' |
| 17 | 'Status and output:%s and %s' % (status, output)) |
| 18 | self.assertEqual(status, 0, msg = msg) |