summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/command.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-11-02 20:22:39 -0400
committerTom Rini <trini@konsulko.com>2023-11-02 22:38:01 -0400
commit1e044a9bd68220af562cc2d895936ec7cc3e3d6d (patch)
tree946aa5cf48d00e014980e0f0c035ba1b417cc0bf /tools/u_boot_pylib/command.py
parent97962260cb93e74e3a8cbbb62e7581830503810a (diff)
parentae94c3d4ee21ba4dd628d2f463fb3992233963ef (diff)
Merge tag 'dm-pull-2nov23' of https://source.denx.de/u-boot/custodians/u-boot-dm
Just various bugfixes, apart from the TI one
Diffstat (limited to 'tools/u_boot_pylib/command.py')
-rw-r--r--tools/u_boot_pylib/command.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/u_boot_pylib/command.py b/tools/u_boot_pylib/command.py
index 9bbfc5bdd83..bbe95d86122 100644
--- a/tools/u_boot_pylib/command.py
+++ b/tools/u_boot_pylib/command.py
@@ -105,9 +105,7 @@ def run_pipe(pipe_list, infile=None, outfile=None,
last_pipe.communicate_filter(output_func))
if result.stdout and oneline:
result.output = result.stdout.rstrip(b'\r\n')
- result.return_code = last_pipe.wait()
- else:
- result.return_code = os.waitpid(last_pipe.pid, 0)[1]
+ result.return_code = last_pipe.wait()
if raise_on_error and result.return_code:
raise Exception("Error running '%s'" % user_pipestr)
return result.to_output(binary)