summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/buildiptables.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-12-05 16:10:12 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:19 +0000
commite5f05409d073f089f4e1a78197e5c6cae6e04809 (patch)
treeeb1cff4989d387e27ba4fe5aeb8eed36dbb58d76 /meta/lib/oeqa/runtime/buildiptables.py
parent260741847a2070a507a8a504bebd457eac99da5f (diff)
downloadpoky-e5f05409d073f089f4e1a78197e5c6cae6e04809.tar.gz
oeqa/runtime: Fix TargetBuildProject instances
TargetBuildProject was refactored to avoid bitbake dependency so the instance don't allow to pass data store anymore. classes/testimage: Export proxies before run tests The TargetBuildProject based tests download archives from network. (From OE-Core rev: e275f29de500a338a02402ecc570405309963b35) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/buildiptables.py')
-rw-r--r--meta/lib/oeqa/runtime/buildiptables.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/buildiptables.py b/meta/lib/oeqa/runtime/buildiptables.py
index bc75d0a0c7..a0e82f0dde 100644
--- a/meta/lib/oeqa/runtime/buildiptables.py
+++ b/meta/lib/oeqa/runtime/buildiptables.py
@@ -1,6 +1,6 @@
1from oeqa.oetest import oeRuntimeTest, skipModule 1from oeqa.oetest import oeRuntimeTest, skipModule
2from oeqa.utils.decorators import * 2from oeqa.utils.decorators import *
3from oeqa.utils.targetbuild import TargetBuildProject 3from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
4 4
5def setUpModule(): 5def setUpModule():
6 if not oeRuntimeTest.hasFeature("tools-sdk"): 6 if not oeRuntimeTest.hasFeature("tools-sdk"):
@@ -10,8 +10,10 @@ class BuildIptablesTest(oeRuntimeTest):
10 10
11 @classmethod 11 @classmethod
12 def setUpClass(self): 12 def setUpClass(self):
13 self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d, 13 dl_dir = oeRuntimeTest.tc.d.getVar('DL_DIR', True)
14 "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2") 14 self.project = TargetBuildProject(oeRuntimeTest.tc.target,
15 "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2",
16 dl_dir=dl_dir)
15 self.project.download_archive() 17 self.project.download_archive()
16 18
17 @testcase(206) 19 @testcase(206)