mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
oeqa/runtime: Added skipModule import for test modules that use it.
The modules that use skipModule should import it themselves and not rely on somebody else to import it. (From OE-Core rev: 6a14db407d471e717f41342ac0700e6a383c32c3) Signed-off-by: Lucian Musat <georgex.l.musat@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:
committed by
Richard Purdie
parent
0c4dd0ad16
commit
984f03457a
@@ -1,4 +1,4 @@
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
from oeqa.utils.targetbuild import TargetBuildProject
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
from oeqa.utils.targetbuild import TargetBuildProject
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
from oeqa.utils.targetbuild import TargetBuildProject
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import unittest
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
|
||||
def setUpModule():
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Note that the image under test must have "pam" in DISTRO_FEATURES
|
||||
|
||||
import unittest
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
|
||||
def setUpModule():
|
||||
@@ -17,8 +17,8 @@ class PamBasicTest(oeRuntimeTest):
|
||||
(status, output) = self.target.run('login --help')
|
||||
self.assertEqual(status, 1, msg = "login command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
(status, output) = self.target.run('passwd --help')
|
||||
self.assertEqual(status, 0, msg = "passwd command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
self.assertEqual(status, 6, msg = "passwd command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
(status, output) = self.target.run('su --help')
|
||||
self.assertEqual(status, 0, msg = "su command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
self.assertEqual(status, 2, msg = "su command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
(status, output) = self.target.run('useradd --help')
|
||||
self.assertEqual(status, 0, msg = "useradd command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
self.assertEqual(status, 2, msg = "useradd command does not work as expected. Status and output:%s and %s" %(status, output))
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Note that the image under test must have meta-skeleton layer in bblayers and IMAGE_INSTALL_append = " service" in local.conf
|
||||
|
||||
import unittest
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
|
||||
def setUpModule():
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import unittest
|
||||
import re
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import *
|
||||
from oeqa.utils.httpserver import HTTPService
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from oeqa.oetest import oeRuntimeTest
|
||||
from oeqa.oetest import oeRuntimeTest, skipModuleUnless
|
||||
from oeqa.utils.decorators import *
|
||||
import re
|
||||
|
||||
|
||||
Reference in New Issue
Block a user