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

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

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 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: webkit/tools/layout_tests/test_output_formatter.py
===================================================================
--- webkit/tools/layout_tests/test_output_formatter.py (revision 36724)
+++ webkit/tools/layout_tests/test_output_formatter.py (working copy)
@@ -1,105 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-This is a script for generating easily-viewable comparisons of text and pixel
-diffs.
-"""
-import optparse
-
-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,
- options.platform_builder,
- (not options.include_expected),
- options.test_regex,
- options.output_dir,
- int(options.max_failures),
- options.verbose,
- options.builder_log,
- options.archive_log,
- options.zip_file,
- options.expectations_file)
- finder.use_local_baselines = options.local
- failure_list = finder.GetFailures()
-
- if not failure_list:
- print "Did not find any failures."
- return
-
- generator = html_generator.HTMLGenerator(failure_list,
- options.output_dir,
- finder.build,
- options.platform_builder,
- (not options.include_expected))
- filename = generator.GenerateHTML()
-
- if filename and options.verbose:
- print "File created at %s" % filename
-
-if __name__ == "__main__":
- option_parser = optparse.OptionParser()
- option_parser.add_option("-v", "--verbose", action="store_true",
- default=False,
- help="Display lots of output.")
- option_parser.add_option("-i", "--include-expected", action="store_true",
- default=False,
- help="Include expected failures in output")
- option_parser.add_option("-p", "--platform-builder",
- default=DEFAULT_BUILDER,
- help="Use the given builder")
- option_parser.add_option("-b", "--build-number",
- default=None,
- help="Use the given build number")
- option_parser.add_option("-t", "--test-regex",
- default=None,
- help="Use the given regex to filter tests")
- option_parser.add_option("-o", "--output-dir",
- default=".",
- help="Output files to given directory")
- 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")
- option_parser.add_option("-u", "--builder-log",
- default=None,
- help=("Use the local builder log file "
- "instead of scraping the buildbots"))
- option_parser.add_option("-a", "--archive-log",
- default=None,
- help=("Use the local archive log file "
- "instead of scraping the buildbots"))
- option_parser.add_option("-e", "--expectations-file",
- default=None,
- help=("Use the local test expectations file "
- "instead of scraping the buildbots"))
- option_parser.add_option("-z", "--zip-file",
- default=None,
- help=("Use the local test output zip file "
- "instead of scraping the buildbots"))
- option_parser.add_option("-l", "--local", action="store_true",
- default=False,
- help=("Use local baselines instead of scraping "
- "baselines from source websites"))
-
- options, args = option_parser.parse_args()
- main(options, args)
« no previous file with comments | « webkit/tools/layout_tests/test_output_formatter.bat ('k') | webkit/tools/layout_tests/test_output_formatter.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698