diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/utils/targetbuildproject.py')
-rw-r--r-- | meta/lib/oeqa/runtime/utils/targetbuildproject.py | 6 |
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] | ||