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

Unified Diff: webkit/tools/layout_tests/layout_package/compare_failures.py

Issue 40151: Fix _ValidateLists to work when running in linting mode. (Closed)
Patch Set: Fix 80 char violation Created 11 years, 10 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
« no previous file with comments | « no previous file | webkit/tools/layout_tests/layout_package/test_expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/layout_package/compare_failures.py
diff --git a/webkit/tools/layout_tests/layout_package/compare_failures.py b/webkit/tools/layout_tests/layout_package/compare_failures.py
index 5850fda5653ba574bc6e6ba3d5d2015508f0cbb6..c465f7afefed3c5ea189f8689bd63fcff45d0f6e 100644
--- a/webkit/tools/layout_tests/layout_package/compare_failures.py
+++ b/webkit/tools/layout_tests/layout_package/compare_failures.py
@@ -14,7 +14,8 @@ import test_failures
import test_expectations
-def PrintFilesFromSet(filenames, header_text, output, opt_expectations=None):
+def PrintFilesFromSet(filenames, header_text, output, opt_expectations=None,
+ opt_relativizeFilenames=True):
"""A helper method to print a list of files to output.
Args:
@@ -35,7 +36,9 @@ def PrintFilesFromSet(filenames, header_text, output, opt_expectations=None):
output_string += " = %s" % opt_expectations
output_string += "\n"
for filename in filenames:
- output.write(output_string % path_utils.RelativeTestFilename(filename))
+ if opt_relativizeFilenames:
+ filename = path_utils.RelativeTestFilename(filename)
+ output.write(output_string % filename)
« no previous file with comments | « no previous file | webkit/tools/layout_tests/layout_package/test_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698