lib/oeqa/runtime: remove some unnecessary checks from setUpModule
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). (From OE-Core rev: 188acd0a75e188fd7c0d2979acaf13fd18b12106) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a79afb3c91
commit
4e62e9cb76
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue