diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-12-05 16:10:12 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | e5f05409d073f089f4e1a78197e5c6cae6e04809 (patch) | |
tree | eb1cff4989d387e27ba4fe5aeb8eed36dbb58d76 /meta/lib/oeqa/runtime/buildcvs.py | |
parent | 260741847a2070a507a8a504bebd457eac99da5f (diff) | |
download | poky-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/buildcvs.py')
-rw-r--r-- | meta/lib/oeqa/runtime/buildcvs.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/runtime/buildcvs.py b/meta/lib/oeqa/runtime/buildcvs.py index fe6cbfbcd5..a5ca3a5b37 100644 --- a/meta/lib/oeqa/runtime/buildcvs.py +++ b/meta/lib/oeqa/runtime/buildcvs.py | |||
@@ -1,6 +1,6 @@ | |||
1 | from oeqa.oetest import oeRuntimeTest, skipModule | 1 | from oeqa.oetest import oeRuntimeTest, skipModule |
2 | from oeqa.utils.decorators import * | 2 | from oeqa.utils.decorators import * |
3 | from oeqa.utils.targetbuild import TargetBuildProject | 3 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
4 | 4 | ||
5 | def setUpModule(): | 5 | def setUpModule(): |
6 | if not oeRuntimeTest.hasFeature("tools-sdk"): | 6 | if not oeRuntimeTest.hasFeature("tools-sdk"): |
@@ -10,9 +10,10 @@ class BuildCvsTest(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://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2") | 14 | self.project = TargetBuildProject(oeRuntimeTest.tc.target, |
15 | self.project.download_archive() | 15 | "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2", |
16 | dl_dir=dl_dir) | ||
16 | 17 | ||
17 | @testcase(205) | 18 | @testcase(205) |
18 | @skipUnlessPassed("test_ssh") | 19 | @skipUnlessPassed("test_ssh") |