diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-02 13:42:01 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | 51be1880631435627e8ff490d71b024c2683244a (patch) | |
tree | f3b07ba37b60db968b359ca3cdac2da8e37ffb74 /meta/lib/oeqa/runtime | |
parent | 72e9ae377d310282f1c8cc49d4806b26a0b41e79 (diff) | |
download | poky-51be1880631435627e8ff490d71b024c2683244a.tar.gz |
oeqa/utils: {Target,SDK,}BuildProject remove dependency of bb
Don't use bitbake references inside utils modules, in order todo
that changes getVar calls for arguments in the __init__ method like
dl_dir for all the classes and testlogdir, builddatetime in
SDKBUildProject.
Also don't export proxies inside _download_archive method, a good
practice is to setup the proxies at init of the process instead of
do it in this helper module.
[YOCTO #10231]
[YOCTO #10599]
(From OE-Core rev: 581c34d1efe9839f50ef322761269b4e4d8a56a6)
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')
-rw-r--r-- | meta/lib/oeqa/runtime/utils/targetbuildproject.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/utils/targetbuildproject.py b/meta/lib/oeqa/runtime/utils/targetbuildproject.py index 138b5ef041..006d4d4a7b 100644 --- a/meta/lib/oeqa/runtime/utils/targetbuildproject.py +++ b/meta/lib/oeqa/runtime/utils/targetbuildproject.py | |||
@@ -5,13 +5,13 @@ from oeqa.utils.buildproject import BuildProject | |||
5 | 5 | ||
6 | class TargetBuildProject(BuildProject): | 6 | class TargetBuildProject(BuildProject): |
7 | 7 | ||
8 | def __init__(self, target, d, uri, foldername=None): | 8 | def __init__(self, target, uri, foldername=None, dl_dir=None): |
9 | self.target = target | 9 | self.target = target |
10 | self.targetdir = "~/" | 10 | self.targetdir = "~/" |
11 | BuildProject.__init__(self, d, uri, foldername, tmpdir="/tmp") | 11 | BuildProject.__init__(self, uri, foldername, tmpdir="/tmp", |
12 | dl_dir=dl_dir) | ||
12 | 13 | ||
13 | def download_archive(self): | 14 | def download_archive(self): |
14 | |||
15 | self._download_archive() | 15 | self._download_archive() |
16 | 16 | ||
17 | (status, output) = self.target.copy_to(self.localarchive, self.targetdir) | 17 | (status, output) = self.target.copy_to(self.localarchive, self.targetdir) |