summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-07-20 00:16:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-26 13:16:40 +0100
commit5b6fbaf7272215dd58b7c74f678cc49642eb0219 (patch)
tree7f6697be0c2851629fa422055c98e6322d539446
parent19905c78e79cd4e65a5536fc683102f3a549e586 (diff)
downloadpoky-5b6fbaf7272215dd58b7c74f678cc49642eb0219.tar.gz
oeqa/sdk/sdkbuildproject: use os.path.join
Instead of mushing two paths together and hoping that the slashes line up correctly, use os.path.join. (From OE-Core rev: ed0413babaf10ccf729472f603bbe32d84ba1931) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/sdk/utils/sdkbuildproject.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
index 0519911e8f..6fed73e350 100644
--- a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
+++ b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
@@ -20,10 +20,9 @@ class SDKBuildProject(BuildProject):
20 BuildProject.__init__(self, uri, foldername, tmpdir=testpath, dl_dir=dl_dir) 20 BuildProject.__init__(self, uri, foldername, tmpdir=testpath, dl_dir=dl_dir)
21 21
22 def download_archive(self): 22 def download_archive(self):
23
24 self._download_archive() 23 self._download_archive()
25 24
26 cmd = 'tar xf %s%s -C %s' % (self.targetdir, self.archive, self.targetdir) 25 cmd = 'tar xf %s -C %s' % (os.path.join(self.targetdir, self.archive), self.targetdir)
27 subprocess.check_output(cmd, shell=True) 26 subprocess.check_output(cmd, shell=True)
28 27
29 #Change targetdir to project folder 28 #Change targetdir to project folder