aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-03 21:09:14 -0600
committerSimon Glass <sjg@chromium.org>2021-11-13 08:16:39 -0700
commite5eaf810f94d9fe3d091b3591552def2e4bf4bae (patch)
tree9a6d1efd01a38db135291af16114d2141fdc0bb4 /tools
parenta51673eb75de328d3471b742e593f04b166591c4 (diff)
downloadu-boot-e5eaf810f94d9fe3d091b3591552def2e4bf4bae.zip
u-boot-e5eaf810f94d9fe3d091b3591552def2e4bf4bae.tar.gz
u-boot-e5eaf810f94d9fe3d091b3591552def2e4bf4bae.tar.bz2
patman: Use a ValueError exception if tools.Run() fails
The Exception base class is a very vague and could be confusing to the test system. Use the more specific ValueError exception instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/tools.py b/tools/patman/tools.py
index 710f1fd..86c4f61 100644
--- a/tools/patman/tools.py
+++ b/tools/patman/tools.py
@@ -349,7 +349,7 @@ def Run(name, *args, **kwargs):
result = command.RunPipe([all_args], capture=True, capture_stderr=True,
env=env, raise_on_error=False, binary=binary)
if result.return_code:
- raise Exception("Error %d running '%s': %s" %
+ raise ValueError("Error %d running '%s': %s" %
(result.return_code,' '.join(all_args),
result.stderr))
return result.stdout