[oe-commits] Stefan Stanacar : oeqa/runtime/xorg: use the right ps command for xorg test
git at git.openembedded.org
git at git.openembedded.org
Sat Aug 3 09:23:47 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 18e4d014bea3a5748f42e6dac648fa9b02230344
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=18e4d014bea3a5748f42e6dac648fa9b02230344
Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date: Tue Jul 30 10:46:04 2013 +0300
oeqa/runtime/xorg: use the right ps command for xorg test
Use our determined ps command, otherwise test fails for images with procps.
Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/lib/oeqa/runtime/xorg.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/runtime/xorg.py b/meta/lib/oeqa/runtime/xorg.py
index 96cc20a..12dccd8 100644
--- a/meta/lib/oeqa/runtime/xorg.py
+++ b/meta/lib/oeqa/runtime/xorg.py
@@ -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):
More information about the Openembedded-commits
mailing list