Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: tools/clang/scripts/run_tool.py

Issue 2612313002: Safe fallback for known "conflicting overrides" during rename. (Closed)
Patch Set: Self-review. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/scripts/run_tool.py
diff --git a/tools/clang/scripts/run_tool.py b/tools/clang/scripts/run_tool.py
index c3482df0c39b6de49cb968b67f54bb865b8894fb..d66034e141cc3d8191c7aacb4d0bf403c993a61e 100755
--- a/tools/clang/scripts/run_tool.py
+++ b/tools/clang/scripts/run_tool.py
@@ -108,7 +108,7 @@ def _ExecuteTool(toolname, tool_args, build_directory, filename):
associated with it.
If status is True, then the generated output is stored with the key
- "stdout_text" in the dictionary.
+ "stdout_text" in the dictionary. Same for "stderr_text".
Otherwise, the filename and the output from stderr are associated with the
keys "filename" and "stderr_text" respectively.
@@ -122,7 +122,8 @@ def _ExecuteTool(toolname, tool_args, build_directory, filename):
if command.returncode != 0:
return {'status': False, 'filename': filename, 'stderr_text': stderr_text}
else:
- return {'status': True, 'filename': filename, 'stdout_text': stdout_text}
+ return {'status': True, 'filename': filename, 'stdout_text': stdout_text,
+ 'stderr_text': stderr_text}
class _CompilerDispatcher(object):
@@ -168,6 +169,7 @@ class _CompilerDispatcher(object):
if result['status']:
self.__success_count += 1
sys.stdout.write(result['stdout_text'])
+ sys.stderr.write(result['stderr_text'])
Łukasz Anforowicz 2017/01/05 18:45:19 Needed to stop eating stderr (which might contain
danakj 2017/01/05 18:55:19 assert if we're going to print things seems best s
Łukasz Anforowicz 2017/01/05 19:04:44 Okay - reverted. I think I still want to do this
else:
self.__failed_count += 1
sys.stderr.write('\nFailed to process %s\n' % result['filename'])

Powered by Google App Engine
This is Rietveld 408576698