diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-08-04 13:45:11 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-08-04 12:45:11 -0500 |
commit | c1f8e460330b7ce83d4ea5a9b753a35321f0cf9e (patch) | |
tree | 00fbad3b0164d995d18c564ac3f0dd59e0fbe6eb /release.py | |
parent | bcbff3efc0e5973d84aaa1fe991b210d97ff2ea3 (diff) | |
download | cryptography-c1f8e460330b7ce83d4ea5a9b753a35321f0cf9e.tar.gz cryptography-c1f8e460330b7ce83d4ea5a9b753a35321f0cf9e.tar.bz2 cryptography-c1f8e460330b7ce83d4ea5a9b753a35321f0cf9e.zip |
Fixes #3821 -- improve output during release.py (#3848)
This should cause stdout/stderr for command we run to be displayed, and also print which commands we're running
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -25,13 +25,8 @@ JENKINS_URL = ( 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): |