aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-08-04 13:45:11 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-08-04 12:45:11 -0500
commitc1f8e460330b7ce83d4ea5a9b753a35321f0cf9e (patch)
tree00fbad3b0164d995d18c564ac3f0dd59e0fbe6eb /release.py
parentbcbff3efc0e5973d84aaa1fe991b210d97ff2ea3 (diff)
downloadcryptography-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.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/release.py b/release.py
index 77391e80..07c5609b 100644
--- a/release.py
+++ b/release.py
@@ -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):