diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/weston.py')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/weston.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py index e2cecffe83..b0dccee73b 100644 --- a/meta/lib/oeqa/runtime/cases/weston.py +++ b/meta/lib/oeqa/runtime/cases/weston.py | |||
| @@ -14,10 +14,6 @@ import time | |||
| 14 | class WestonTest(OERuntimeTestCase): | 14 | class WestonTest(OERuntimeTestCase): |
| 15 | weston_log_file = '/tmp/weston-2.log' | 15 | weston_log_file = '/tmp/weston-2.log' |
| 16 | 16 | ||
| 17 | @classmethod | ||
| 18 | def tearDownClass(cls): | ||
| 19 | cls.tc.target.run('rm %s' % cls.weston_log_file, ignore_ssh_fails=True) | ||
| 20 | |||
| 21 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 17 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 22 | @OEHasPackage(['weston']) | 18 | @OEHasPackage(['weston']) |
| 23 | def test_weston_running(self): | 19 | def test_weston_running(self): |
| @@ -67,6 +63,10 @@ class WestonTest(OERuntimeTestCase): | |||
| 67 | existing_wl_processes = self.get_processes_of('weston-desktop-shell', 'existing') | 63 | existing_wl_processes = self.get_processes_of('weston-desktop-shell', 'existing') |
| 68 | existing_weston_processes = self.get_processes_of('weston', 'existing') | 64 | existing_weston_processes = self.get_processes_of('weston', 'existing') |
| 69 | 65 | ||
| 66 | # weston log file should be removed, except if test_weston_supports_xwayland() test has to be run. | ||
| 67 | if 'x11' not in self.td.get('DISTRO_FEATURES'): | ||
| 68 | self.addCleanup(self.target.run, 'rm -f %s' % self.weston_log_file) | ||
| 69 | |||
| 70 | weston_thread = threading.Thread(target=self.run_weston_init) | 70 | weston_thread = threading.Thread(target=self.run_weston_init) |
| 71 | weston_thread.start() | 71 | weston_thread.start() |
| 72 | new_wl_processes, try_cnt = self.get_new_wayland_processes(existing_wl_processes) | 72 | new_wl_processes, try_cnt = self.get_new_wayland_processes(existing_wl_processes) |
| @@ -83,6 +83,7 @@ class WestonTest(OERuntimeTestCase): | |||
| 83 | @skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES') | 83 | @skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES') |
| 84 | @OEHasPackage(['weston']) | 84 | @OEHasPackage(['weston']) |
| 85 | def test_weston_supports_xwayland(self): | 85 | def test_weston_supports_xwayland(self): |
| 86 | self.addCleanup(self.target.run, 'rm -f %s' % self.weston_log_file) | ||
| 86 | cmd ='cat %s | grep "xserver listening on display"' % self.weston_log_file | 87 | cmd ='cat %s | grep "xserver listening on display"' % self.weston_log_file |
| 87 | status, output = self.target.run(cmd) | 88 | status, output = self.target.run(cmd) |
| 88 | msg = ('xwayland does not appear to be running') | 89 | msg = ('xwayland does not appear to be running') |
