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

Unified Diff: tools/clang/translation_unit/test_translation_unit.py

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/translation_unit/test_translation_unit.py
diff --git a/tools/clang/translation_unit/test_translation_unit.py b/tools/clang/translation_unit/test_translation_unit.py
index eb5cce81e89a2ed2ae2e5f770abf494ef701d496..a8e8f6865af2f9269420d1cb9683b7db14bb6d58 100755
--- a/tools/clang/translation_unit/test_translation_unit.py
+++ b/tools/clang/translation_unit/test_translation_unit.py
@@ -68,9 +68,16 @@ def main():
actual_output = f.readlines()
has_same_filepaths = True
for expected_line, actual_line in zip(expected_output, actual_output):
+ if '//' in actual_output:
+ if actual_output.split('//')[1] != expected_output:
+ sys.stdout.write('expected: %s' % expected_output)
+ sys.stdout.write('actual: %s' % actual_output.split('//')[1])
+ break
+ else:
+ continue
if ntpath.basename(expected_line) != ntpath.basename(actual_line):
- sys.stdout.write(ntpath.basename(expected_line))
- sys.stdout.write(ntpath.basename(actual_line))
+ sys.stdout.write('expected: %s' % ntpath.basename(expected_line))
+ sys.stdout.write('actual: %s' % ntpath.basename(actual_line))
has_same_filepaths = False
break
if not has_same_filepaths:

Powered by Google App Engine
This is Rietveld 408576698