From: Richard Purdie Date: Fri, 9 Nov 2018 12:49:47 +0000 (+0000) Subject: oeqa/runtime/utils/targetbuildproject: Use a subdir within ~/ X-Git-Tag: uninative-2.4~1183 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9dc1de59330c366783ea043c68c1b59b1b49e707;p=openembedded-core.git oeqa/runtime/utils/targetbuildproject: Use a subdir within ~/ Without doing this, the code can and sometimes does try and do "rm ~/" which I think we'd all prefer it didn't. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/utils/targetbuildproject.py b/meta/lib/oeqa/runtime/utils/targetbuildproject.py index 5af55d736e..de17ba01f8 100644 --- a/meta/lib/oeqa/runtime/utils/targetbuildproject.py +++ b/meta/lib/oeqa/runtime/utils/targetbuildproject.py @@ -7,10 +7,12 @@ class TargetBuildProject(BuildProject): def __init__(self, target, uri, foldername=None, dl_dir=None): self.target = target - self.targetdir = "~/" + self.targetdir = "~/buildtest/" BuildProject.__init__(self, uri, foldername, dl_dir=dl_dir) def download_archive(self): + self.target.run("mkdir " + self.targetdir + " || true") + self._download_archive() status, output = self.target.copyTo(self.localarchive, self.targetdir)