diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/weston.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py new file mode 100644 index 0000000000..f32599afc3 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/weston.py | |||
@@ -0,0 +1,19 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: MIT | ||
3 | # | ||
4 | |||
5 | from oeqa.runtime.case import OERuntimeTestCase | ||
6 | from oeqa.core.decorator.depends import OETestDepends | ||
7 | from oeqa.core.decorator.data import skipIfNotFeature | ||
8 | from oeqa.runtime.decorator.package import OEHasPackage | ||
9 | |||
10 | class WestonTest(OERuntimeTestCase): | ||
11 | |||
12 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
13 | @OEHasPackage(['weston']) | ||
14 | def test_weston_running(self): | ||
15 | cmd ='%s | grep [w]eston-desktop-shell' % self.tc.target_cmds['ps'] | ||
16 | status, output = self.target.run(cmd) | ||
17 | msg = ('Weston does not appear to be running %s' % | ||
18 | self.target.run(self.tc.target_cmds['ps'])[1]) | ||
19 | self.assertEqual(status, 0, msg=msg) | ||