summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/cases/buildiptables.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-11-27 17:51:53 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:19 +0000
commitc9fe59d7c5e815fb6453f50d0f15699ea6799129 (patch)
tree4e7715c04b705eb78f49e55d421b25483c594f9c /meta/lib/oeqa/sdk/cases/buildiptables.py
parent51be1880631435627e8ff490d71b024c2683244a (diff)
downloadpoky-c9fe59d7c5e815fb6453f50d0f15699ea6799129.tar.gz
oeqa/sdk/cases: Migrate tests to the new OEQA framework
Summary of the changes: - Remove auto extend_path using pkgutil at __init__, is not needed. - Change base class to OESDKTestCase. - Add td_vars attr to set dependencies of certain variables in test data. - Change skips from module level to class level because Test context (tc) now isn't at module level. - Variable names changes to be consistent (i.e. sdktestdir -> sdk_dir). [YOCTO #10599] - Don't use bb.utils functions use instead remove_safe and shutil for copy files. - SDKBuildProject pass test data variables instead of call getVar inside. [YOCTO #10231] (From OE-Core rev: 91cd1ed19a3f34c29cd77eb136036975fe465444) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildiptables.py')
-rw-r--r--meta/lib/oeqa/sdk/cases/buildiptables.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildiptables.py b/meta/lib/oeqa/sdk/cases/buildiptables.py
index f0cb8a4287..a50fb5dcf5 100644
--- a/meta/lib/oeqa/sdk/cases/buildiptables.py
+++ b/meta/lib/oeqa/sdk/cases/buildiptables.py
@@ -1,14 +1,16 @@
1from oeqa.oetest import oeSDKTest 1from oeqa.sdk.case import OESDKTestCase
2from oeqa.utils.decorators import * 2from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject
3from oeqa.utils.targetbuild import SDKBuildProject
4 3
5 4class BuildIptablesTest(OESDKTestCase):
6class BuildIptablesTest(oeSDKTest): 5 td_vars = ['TEST_LOG_DIR', 'DATETIME']
7 6
8 @classmethod 7 @classmethod
9 def setUpClass(self): 8 def setUpClass(self):
10 self.project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/iptables/", oeSDKTest.tc.sdkenv, oeSDKTest.tc.d, 9 dl_dir = self.td.get('DL_DIR', None)
11 "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2") 10
11 self.project = SDKBuildProject(self.tc.sdk_dir + "/iptables/", self.tc.sdk_env,
12 "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2",
13 self.td['TEST_LOG_DIR'], self.td['DATETIME'], dl_dir=dl_dir)
12 self.project.download_archive() 14 self.project.download_archive()
13 15
14 def test_iptables(self): 16 def test_iptables(self):