Skip to content

Commit

Permalink
util: testing: consoletest: commands: Print returncode on subprocess …
Browse files Browse the repository at this point in the history
…execption

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
  • Loading branch information
pdxjohnny committed Oct 7, 2021
1 parent ccca7fb commit 4c2abd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dffml/util/testing/consoletest/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ async def run_commands(
break
proc.wait()
if proc.returncode != 0:
errors.append(f"Failed to run: {cmd!r}")
errors.append(f"Failed to run: {proc.cmd!r}: {proc.returncode}")
if errors and not ignore_errors:
raise RuntimeError("\n".join(errors))
if daemon:
Expand Down

0 comments on commit 4c2abd6

Please sign in to comment.