summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-09 12:49:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 +0000
commita9150f1252146283ca04e7054abe82062a8366f1 (patch)
tree259f60a952c9a8d391fe691f5f07c9c56a95b6bd
parent8ec759a723db90519c50eec7f99f7b2c8f8c34d1 (diff)
downloadpoky-a9150f1252146283ca04e7054abe82062a8366f1.tar.gz
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. (From OE-Core rev: 9dc1de59330c366783ea043c68c1b59b1b49e707) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/runtime/utils/targetbuildproject.py4
1 files changed, 3 insertions, 1 deletions
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):
7 7
8 def __init__(self, target, uri, foldername=None, dl_dir=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 = "~/buildtest/"
11 BuildProject.__init__(self, uri, foldername, dl_dir=dl_dir) 11 BuildProject.__init__(self, uri, foldername, dl_dir=dl_dir)
12 12
13 def download_archive(self): 13 def download_archive(self):
14 self.target.run("mkdir " + self.targetdir + " || true")
15
14 self._download_archive() 16 self._download_archive()
15 17
16 status, output = self.target.copyTo(self.localarchive, self.targetdir) 18 status, output = self.target.copyTo(self.localarchive, self.targetdir)