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

Unified Diff: webkit/tools/layout_tests/test_output_formatter.py

Issue 160054: Adds a new unit tests for layout tests formatting script.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « webkit/tools/layout_tests/layout_package/failure_finder_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/test_output_formatter.py
===================================================================
--- webkit/tools/layout_tests/test_output_formatter.py (revision 21078)
+++ webkit/tools/layout_tests/test_output_formatter.py (working copy)
@@ -12,12 +12,17 @@
from layout_package import test_expectations
from layout_package import failure
from layout_package import failure_finder
+from layout_package import failure_finder_test
from layout_package import html_generator
DEFAULT_BUILDER = "Webkit"
def main(options, args):
+ if options.run_tests:
+ fft = failure_finder_test.FailureFinderTest()
+ return fft.runTests()
+
# TODO(gwilson): Add a check that verifies the given platform exists.
finder = failure_finder.FailureFinder(options.build_number,
@@ -66,6 +71,9 @@
option_parser.add_option("-m", "--max-failures",
default = 100,
help = "Limit the maximum number of failures")
+ option_parser.add_option("-r", "--run-tests", action = "store_true",
+ default = False,
+ help = "Runs unit tests")
options, args = option_parser.parse_args()
main(options, args)
« no previous file with comments | « webkit/tools/layout_tests/layout_package/failure_finder_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698