]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oeqa/runtime: remove some unnecessary checks from setUpModule
authorStefan Stanacar <stefanx.stanacar@intel.com>
Wed, 28 Aug 2013 09:56:45 +0000 (12:56 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Aug 2013 22:35:56 +0000 (23:35 +0100)
These checks are unnecessary.
setUpModule is run when a module is loaded and we
shouldn't run commands on the target here, (plus if
ssh doesn't work we error out in setup multiple times, instead
of skipping the real test, which might depend on test_ssh).

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

index d6c04cb0f7957e841c420d00e5368afee632da63..3b359647638301ed9a487192997a6f6ecdbb8bce 100644 (file)
@@ -2,9 +2,6 @@ from oeqa.oetest import oeRuntimeTest
 from oeqa.utils.decorators import *
 import re
 
-def setUpModule():
-    skipModuleUnless(oeRuntimeTest.tc.target.run('which date')[0] == 0, "No date in image or no connection")
-
 class DateTest(oeRuntimeTest):
 
     def setUp(self):
index c9119898dc0ebd95a4a3c3190e6be9c1ef66a2a4..b6da35027c1216a70db4760f6b45950105594781 100644 (file)
@@ -2,8 +2,6 @@ import unittest
 from oeqa.oetest import oeRuntimeTest
 from oeqa.utils.decorators import *
 
-def setUpModule():
-    skipModuleUnless(oeRuntimeTest.tc.target.run('which df')[0] == 0, "No df in image or no connection")
 
 class DfTest(oeRuntimeTest):
 
index 48370fbb0cae1fa8e654807ed3dcb99c0989591b..a53d1f0bf38072a08c61bdfc6f133ad21709e9b4 100644 (file)
@@ -2,8 +2,6 @@ import unittest
 from oeqa.oetest import oeRuntimeTest
 from oeqa.utils.decorators import *
 
-def setUpModule():
-    skipModuleUnless(oeRuntimeTest.tc.target.run('which dmesg')[0] == 0, "No dmesg in image or no connection")
 
 class DmesgTest(oeRuntimeTest):
 
index 94761840806cde753c26ebe07789927024bd8fc8..ce111793b8123108d2a9f330ac2435e34d6610d4 100644 (file)
@@ -3,7 +3,7 @@ from oeqa.utils.decorators import *
 import re
 
 def setUpModule():
-    skipModuleUnless(oeRuntimeTest.tc.target.run('which x11vnc')[0] == 0, "No x11vnc in image")
+    skipModuleUnless(oeRuntimeTest.hasPackage('x11vnc'), "No x11vnc package in image")
 
 class VNCTest(oeRuntimeTest):