aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher
diff options
context:
space:
mode:
authorRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-08-02 15:18:36 +0200
committerNeil Williams <neil.williams@linaro.org>2018-08-03 07:18:07 +0000
commit5e101d81773a84e73e73e9af262d7bb874327d74 (patch)
treedc7bfedc141f3de614b5e6ef8cfbde9687e07ade /lava_dispatcher
parentf019af70dbe3132570b8864d3259db682532618f (diff)
run_command: print the output when failing
The message was including the wrong variable. Change-Id: I163bc30a6d6dce5dc3daf639b81077079cc04606
Diffstat (limited to 'lava_dispatcher')
-rw-r--r--lava_dispatcher/action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lava_dispatcher/action.py b/lava_dispatcher/action.py
index 40f440ad5..0c2962791 100644
--- a/lava_dispatcher/action.py
+++ b/lava_dispatcher/action.py
@@ -488,8 +488,8 @@ class Action(object): # pylint: disable=too-many-instance-attributes,too-many-p
errors.append(exc.output.strip().decode('utf-8', errors="replace"))
else:
errors.append(str(exc))
- msg = '[%s] command %s\nmessage %s\noutput %s\n' % (
- self.name, [i.strip() for i in exc.cmd], str(exc), str(exc).split('\n'))
+ msg = 'action: %s\ncommand: %s\nmessage: %s\noutput: %s\n' % (
+ self.name, [i.strip() for i in exc.cmd], str(exc), "\n".join(errors))
# the exception is raised due to a non-zero exc.returncode
if allow_fail: