]> git.baikalelectronics.ru Git - uboot.git/commit
patman: Update command.Run() to handle failure better
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:22:42 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commitcb193f3dcdadfa5828bfb987b67241678079ec84
tree2e1531dfcf318de3d3a80acafb529b045d463649
parent10a4511aeaef199b9584e6c45319d8bfb9202622
patman: Update command.Run() to handle failure better

At present tools are not expected to fail. If they do an exception is
raised but there is no detail about what went wrong. This makes it hard
to debug if something does actually go wrong.

Fix this by outputting both stderr and stdout on failure.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/tools.py