From 581c34d1efe9839f50ef322761269b4e4d8a56a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Wed, 2 Nov 2016 13:42:01 -0600 Subject: oeqa/utils: {Target,SDK,}BuildProject remove dependency of bb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] Signed-off-by: Aníbal Limón --- meta/lib/oeqa/runtime/utils/targetbuildproject.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/lib/oeqa/runtime/utils/targetbuildproject.py') 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 class TargetBuildProject(BuildProject): - def __init__(self, target, d, uri, foldername=None): + def __init__(self, target, uri, foldername=None, dl_dir=None): self.target = target self.targetdir = "~/" - BuildProject.__init__(self, d, uri, foldername, tmpdir="/tmp") + BuildProject.__init__(self, uri, foldername, tmpdir="/tmp", + dl_dir=dl_dir) def download_archive(self): - self._download_archive() (status, output) = self.target.copy_to(self.localarchive, self.targetdir) -- cgit v1.2.3