From c1f8e460330b7ce83d4ea5a9b753a35321f0cf9e Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 4 Aug 2017 13:45:11 -0400 Subject: 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 --- release.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'release.py') 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): -- cgit v1.2.3