[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4230/8267] oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4230/8267] oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line
- Date: Sun, 17 Dec 2017 01:44:42 +0000 (UTC)
commit c35b42cdbbdc5d966fc9e4c0173273189f50c9c0
Author: Mariano Lopez <mariano lopez linux intel com>
Date: Wed Dec 7 13:41:39 2016 +0000
oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line
(From OE-Core rev: 95a55e0736fc59ecdcb88d43f08b447ffa5a43ed)
Signed-off-by: Mariano Lopez <mariano lopez linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/lib/oeqa/runtime/utils/targetbuildproject.py | 29 +++++++++++---------
1 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/meta/lib/oeqa/runtime/utils/targetbuildproject.py
b/meta/lib/oeqa/runtime/utils/targetbuildproject.py
index 006d4d4..1ed5789 100644
--- a/meta/lib/oeqa/runtime/utils/targetbuildproject.py
+++ b/meta/lib/oeqa/runtime/utils/targetbuildproject.py
@@ -14,20 +14,23 @@ class TargetBuildProject(BuildProject):
def download_archive(self):
self._download_archive()
- (status, output) = self.target.copy_to(self.localarchive, self.targetdir)
- if status != 0:
- raise Exception("Failed to copy archive to target, output: %s" % output)
-
- (status, output) = self.target.run('tar xf %s%s -C %s' % (self.targetdir, self.archive,
self.targetdir))
- if status != 0:
- raise Exception("Failed to extract archive, output: %s" % output)
-
- #Change targetdir to project folder
+ status, output = self.target.copyTo(self.localarchive, self.targetdir)
+ if status:
+ raise Exception('Failed to copy archive to target, '
+ 'output: %s' % output)
+
+ cmd = 'tar xf %s%s -C %s' % (self.targetdir,
+ self.archive,
+ self.targetdir)
+ status, output = self.target.run(cmd)
+ if status:
+ raise Exception('Failed to extract archive, '
+ 'output: %s' % output)
+
+ # Change targetdir to project folder
self.targetdir = self.targetdir + self.fname
- # The timeout parameter of target.run is set to 0 to make the ssh command
- # run with no timeout.
+ # The timeout parameter of target.run is set to 0
+ # to make the ssh command run with no timeout.
def _run(self, cmd):
return self.target.run(cmd, 0)[0]
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]