summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/runtime/cases/terminal.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/terminal.py b/meta/lib/oeqa/runtime/cases/terminal.py
index a268f26880..8fcca99f47 100644
--- a/meta/lib/oeqa/runtime/cases/terminal.py
+++ b/meta/lib/oeqa/runtime/cases/terminal.py
@@ -10,9 +10,12 @@ class TerminalTest(OERuntimeTestCase):
10 @OEHasPackage(['matchbox-terminal']) 10 @OEHasPackage(['matchbox-terminal'])
11 @OETestDepends(['ssh.SSHTest.test_ssh']) 11 @OETestDepends(['ssh.SSHTest.test_ssh'])
12 def test_terminal_running(self): 12 def test_terminal_running(self):
13 t_thread = threading.Thread(target=self.target.run, args=('export DISPLAY=:0 && matchbox-terminal',)) 13 t_thread = threading.Thread(target=self.target.run, args=("export DISPLAY=:0 && matchbox-terminal -e 'sh -c \"uname -a && exec sh\"'",))
14 t_thread.start() 14 t_thread.start()
15 time.sleep(2) 15 time.sleep(2)
16
16 status, output = self.target.run('pidof matchbox-terminal') 17 status, output = self.target.run('pidof matchbox-terminal')
18 number_of_terminal = len(output.split())
19 self.assertEqual(number_of_terminal, 1, msg='There should be only one terminal being launched. Number of terminal launched : %s' % number_of_terminal)
17 self.target.run('kill -9 %s' % output) 20 self.target.run('kill -9 %s' % output)
18 self.assertEqual(status, 0, msg='Not able to find process that runs terminal.') 21 self.assertEqual(status, 0, msg='Not able to find process that runs terminal.')