summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/utils
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-03 10:30:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-05 09:22:17 +0000
commit6840618f1a718d3aa8fd9e7e4fd3ffde01559e7d (patch)
treee3d7c46f7b21e570fd64870e16680f5d0f378c46 /meta/lib/oeqa/runtime/utils
parent51481fe9bbfb07271317824eac3044be6cab297c (diff)
downloadpoky-6840618f1a718d3aa8fd9e7e4fd3ffde01559e7d.tar.gz
oeqa/runtime: Improve failure log output
Printing a message which says "configure failed" without the log output is effectively useless. If a command fails, print the output by default and simplify the calling code which makes debugging any of these failures much easier. (From OE-Core rev: b6352ff001c29f0bff10c18879b92c5618ec645c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/utils')
-rw-r--r--meta/lib/oeqa/runtime/utils/targetbuildproject.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/utils/targetbuildproject.py b/meta/lib/oeqa/runtime/utils/targetbuildproject.py
index 1ed5789ae5..551b0b6f27 100644
--- a/meta/lib/oeqa/runtime/utils/targetbuildproject.py
+++ b/meta/lib/oeqa/runtime/utils/targetbuildproject.py
@@ -33,4 +33,8 @@ class TargetBuildProject(BuildProject):
33 # The timeout parameter of target.run is set to 0 33 # The timeout parameter of target.run is set to 0
34 # to make the ssh command run with no timeout. 34 # to make the ssh command run with no timeout.
35 def _run(self, cmd): 35 def _run(self, cmd):
36 return self.target.run(cmd, 0)[0] 36 ret = self.target.run(cmd, 0)
37 msg = "Command %s failed with exit code %s: %s" % (cmd, ret[0], ret[1])
38 if ret[0] != 0:
39 raise Exception(msg)
40 return ret[0]