[ARVADOS-DEV] updated: 04e107ffad3070ad9892a58ab4eacf7f51d2e1a4
Git user
git at public.curoverse.com
Wed Jul 26 13:19:25 EDT 2017
Summary of changes:
jenkins/run_upload_packages.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
via 04e107ffad3070ad9892a58ab4eacf7f51d2e1a4 (commit)
from 83026883d6c4e1de2da2821457b987555568b1b1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 04e107ffad3070ad9892a58ab4eacf7f51d2e1a4
Author: Tom Clegg <tom at curoverse.com>
Date: Wed Jul 26 13:17:44 2017 -0400
Propagate stderr from child process.
No issue #
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curoverse.com>
diff --git a/jenkins/run_upload_packages.py b/jenkins/run_upload_packages.py
index fd22943..ee3f8d2 100755
--- a/jenkins/run_upload_packages.py
+++ b/jenkins/run_upload_packages.py
@@ -38,8 +38,12 @@ def run_and_grep(cmd, read_output, *regexps,
popen_kwargs[read_output] = subprocess.PIPE
proc = subprocess.Popen(cmd, **popen_kwargs)
with open(getattr(proc, read_output).fileno(), encoding=encoding) as output:
- matched_lines = [line for line in output
- if any(regexp.search(line) for regexp in regexps)]
+ matched_lines = []
+ for line in output:
+ if any(regexp.search(line) for regexp in regexps):
+ matched_lines.append(line)
+ if read_output == 'stderr':
+ print(line, file=sys.stderr, end='')
return proc.wait(), matched_lines
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list