Skip to content

Commit

Permalink
Refs #3646 -- include stdout in the output when spawning a process fa…
Browse files Browse the repository at this point in the history
…ils in the release script (#3671)
  • Loading branch information
alex authored and reaperhulk committed Jun 4, 2017
1 parent 6a0718f commit eadebec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion release.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@

def run(*args, **kwargs):
kwargs.setdefault("stderr", subprocess.STDOUT)
subprocess.check_output(list(args), **kwargs)
try:
subprocess.check_output(list(args), **kwargs)
except subprocess.CalledProcessError as e:
# Reraise this with a different type so that str(e) is somethign with
# stdout in it.
raise Exception(e.cmd, e.returncode, e.output)


def wait_for_build_completed(session):
Expand Down

0 comments on commit eadebec

Please sign in to comment.