Commit 56f2565d authored by Robin Sonnabend's avatar Robin Sonnabend

print subprocess outputs

parent 87302a16
Pipeline #586 passed with stage
in 13 minutes and 22 seconds
......@@ -26,10 +26,13 @@ EXTRACT_PATTERN = (r"extracting (?P<name>{pkg_name}) in (?P<dir>{pkg_name}-{vers
def run_checked(command, **kwargs):
try:
return sp.run(
result = sp.run(
command, check=True,
stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True,
**kwargs)
print(result.stdout)
print(result.stderr)
return result
except sp.CalledProcessError as error:
print(error.stdout)
print(error.stderr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment