]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/xorg: use the right ps command for xorg test
authorStefan Stanacar <stefanx.stanacar@intel.com>
Tue, 30 Jul 2013 07:46:04 +0000 (10:46 +0300)
committerSaul Wold <sgw@linux.intel.com>
Fri, 2 Aug 2013 04:57:52 +0000 (21:57 -0700)
Use our determined ps command, otherwise test fails for images with procps.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/lib/oeqa/runtime/xorg.py

index 96cc20a50be654c45e1064caf7b70378816b2fb9..12dccd81983df6a03b49133262ad82e4d2a6d05b 100644 (file)
@@ -11,8 +11,8 @@ class XorgTest(oeRuntimeTest):
 
     @skipUnlessPassed('test_ssh')
     def test_xorg_running(self):
-        (status, output) = self.target.run('ps | grep -v xinit | grep [X]org')
-        self.assertEqual(status, 0, msg="Xorg does not appear to be running %s" % self.target.run('ps')[1])
+        (status, output) = self.target.run(oeRuntimeTest.pscmd + ' |  grep -v xinit | grep [X]org')
+        self.assertEqual(status, 0, msg="Xorg does not appear to be running %s" % self.target.run(oeRuntimeTest.pscmd)[1])
 
     @skipUnlessPassed('test_ssh')
     def test_xorg_error(self):