diff options
-rw-r--r-- | meta/lib/oeqa/runtime/cases/terminal.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/terminal.py b/meta/lib/oeqa/runtime/cases/terminal.py new file mode 100644 index 0000000000..a268f26880 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/terminal.py | |||
@@ -0,0 +1,18 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | ||
2 | from oeqa.core.decorator.depends import OETestDepends | ||
3 | from oeqa.runtime.decorator.package import OEHasPackage | ||
4 | |||
5 | import threading | ||
6 | import time | ||
7 | |||
8 | class TerminalTest(OERuntimeTestCase): | ||
9 | |||
10 | @OEHasPackage(['matchbox-terminal']) | ||
11 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
12 | def test_terminal_running(self): | ||
13 | t_thread = threading.Thread(target=self.target.run, args=('export DISPLAY=:0 && matchbox-terminal',)) | ||
14 | t_thread.start() | ||
15 | time.sleep(2) | ||
16 | status, output = self.target.run('pidof matchbox-terminal') | ||
17 | self.target.run('kill -9 %s' % output) | ||
18 | self.assertEqual(status, 0, msg='Not able to find process that runs terminal.') | ||