From e02a9318947ead814a635c65a35393c5d91c7c77 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 6 Jun 2014 12:25:01 +0100 Subject: [PATCH] Print `stderr` --- tests/jenkins.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/jenkins.py b/tests/jenkins.py index cd9d4fd141..19d9de115b 100644 --- a/tests/jenkins.py +++ b/tests/jenkins.py @@ -428,11 +428,14 @@ def run(opts): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - stdout, _ = proc.communicate() + stdout, stderr = proc.communicate() if stdout: print(stdout) sys.stdout.flush() + if stderr: + print(stderr) + sys.stderr.flush() retcode = proc.returncode if retcode != 0: @@ -463,11 +466,14 @@ def run(opts): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) - stdout, _ = proc.communicate() + stdout, stderr = proc.communicate() if stdout: print(stdout) sys.stdout.flush() + if stderr: + print(stderr) + sys.stderr.flush() retcode = proc.returncode if retcode != 0: @@ -492,8 +498,8 @@ def run(opts): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - stdout, _ = proc.communicate() - sys.stdout.flush() + + proc.communicate() retcode = proc.returncode if retcode != 0: @@ -587,11 +593,14 @@ def run(opts): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - stdout, _ = proc.communicate() + stdout, stderr = proc.communicate() if stdout: print(stdout) sys.stdout.flush() + if stderr: + print(stderr) + sys.stderr.flush() try: match = re.search(r'Test Suite Exit Code: (?P[\d]+)', stdout)