Skip to content

Commit

Permalink
Fixes #3821 -- improve output during release.py (#3848)
Browse files Browse the repository at this point in the history
This should cause stdout/stderr for command we run to be displayed, and also print which commands we're running
  • Loading branch information
alex authored and reaperhulk committed Aug 4, 2017
1 parent bcbff3e commit c1f8e46
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@


def run(*args, **kwargs):
kwargs.setdefault("stderr", subprocess.STDOUT)
try:
subprocess.check_output(list(args), **kwargs)
except subprocess.CalledProcessError as e:
# Reraise this with a different type so that str(e) is something with
# stdout in it.
raise Exception(e.cmd, e.returncode, e.output)
print("[running] {0}".format(list(args)))
subprocess.check_call(list(args), **kwargs)


def wait_for_build_completed(session):
Expand Down

0 comments on commit c1f8e46

Please sign in to comment.