aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-06-04 15:51:09 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-04 09:51:09 -1000
commiteadebec0014575b07515e0e65b06c490f214d35a (patch)
tree17160c478de469ef259c3bcd42dae837585a01fa /release.py
parent6a0718faddbc7b6b57f86417f6daa468c18ea248 (diff)
downloadcryptography-eadebec0014575b07515e0e65b06c490f214d35a.tar.gz
cryptography-eadebec0014575b07515e0e65b06c490f214d35a.tar.bz2
cryptography-eadebec0014575b07515e0e65b06c490f214d35a.zip
Refs #3646 -- include stdout in the output when spawning a process fails in the release script (#3671)
Diffstat (limited to 'release.py')
-rw-r--r--release.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release.py b/release.py
index e7a0080b..0016b659 100644
--- a/release.py
+++ b/release.py
@@ -25,7 +25,12 @@ JENKINS_URL = (
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):