From: Stefan Stanacar Date: Tue, 30 Jul 2013 07:46:04 +0000 (+0300) Subject: oeqa/runtime/xorg: use the right ps command for xorg test X-Git-Tag: rev_ivi_2015_02_04~11614 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d637e345e36335b82bce57a81eddb2f33748640;p=scm%2Fbb%2Ftizen-distro.git oeqa/runtime/xorg: use the right ps command for xorg test Use our determined ps command, otherwise test fails for images with procps. (From OE-Core rev: 18e4d014bea3a5748f42e6dac648fa9b02230344) Signed-off-by: Stefan Stanacar Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- 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):