diff options
author | Simon Glass <sjg@chromium.org> | 2025-02-03 09:26:45 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-03-04 13:31:49 -0600 |
commit | 3d094ce28a22690c3d672988af5f161310822603 (patch) | |
tree | 5c459f23f717101ef39d7e0bc5fdef4d810507d8 /tools/u_boot_pylib/tools.py | |
parent | f8456c91aad8259ab08bdf3654b8ee8c0187a45d (diff) |
u_boot_pylib: Add a function to run a single command
Add a helper to avoid needing to use a list within a list for this
simple case.
Update existing users of runpipe() to use this where possible.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/u_boot_pylib/tools.py')
-rw-r--r-- | tools/u_boot_pylib/tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/u_boot_pylib/tools.py b/tools/u_boot_pylib/tools.py index 0499a75526f..1afd289eadd 100644 --- a/tools/u_boot_pylib/tools.py +++ b/tools/u_boot_pylib/tools.py @@ -376,7 +376,7 @@ def run_result(name, *args, **kwargs): args = tuple(extra_args) + args name = os.path.expanduser(name) # Expand paths containing ~ all_args = (name,) + args - result = command.run_pipe([all_args], capture=True, capture_stderr=True, + result = command.run_one(*all_args, capture=True, capture_stderr=True, env=env, raise_on_error=False, binary=binary) if result.return_code: if raise_on_error: |