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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

Issue 1154373005: Introduce WPTServe for running W3C Blink Layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nits, refactor, license header update. Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # Copyright (C) 2011 Apple Inc. All rights reserved. 3 # Copyright (C) 2011 Apple Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 optparse.make_option("--batch-size", 177 optparse.make_option("--batch-size",
178 help=("Run a the tests in batches (n), after every n tests, " 178 help=("Run a the tests in batches (n), after every n tests, "
179 "the driver is relaunched."), type="int", default=None), 179 "the driver is relaunched."), type="int", default=None),
180 optparse.make_option("--build", dest="build", 180 optparse.make_option("--build", dest="build",
181 action="store_true", default=True, 181 action="store_true", default=True,
182 help="Check to ensure the build is up-to-date (default)."), 182 help="Check to ensure the build is up-to-date (default)."),
183 optparse.make_option("--no-build", dest="build", 183 optparse.make_option("--no-build", dest="build",
184 action="store_false", help="Don't check to see if the build is up-to -date."), 184 action="store_false", help="Don't check to see if the build is up-to -date."),
185 optparse.make_option("--child-processes", 185 optparse.make_option("--child-processes",
186 help="Number of drivers to run in parallel."), 186 help="Number of drivers to run in parallel."),
187 optparse.make_option("--enable-wptserve", dest="enable_wptserve", action ="store_true", default=False,
188 help="Enable running web-plaform-tests using WPTser ve instead of Apache."),
jsbell 2015/06/05 19:07:45 nit: indenting here is inconsistent
burnik 2015/06/08 12:37:01 Pre-submit checks gave me a really hard time with
187 optparse.make_option("--disable-breakpad", action="store_true", 189 optparse.make_option("--disable-breakpad", action="store_true",
188 help="Don't use breakpad to symbolize unexpected crashes."), 190 help="Don't use breakpad to symbolize unexpected crashes."),
189 optparse.make_option("--driver-logging", action="store_true", 191 optparse.make_option("--driver-logging", action="store_true",
190 help="Print detailed logging of the driver/content_shell"), 192 help="Print detailed logging of the driver/content_shell"),
191 optparse.make_option("--enable-leak-detection", action="store_true", 193 optparse.make_option("--enable-leak-detection", action="store_true",
192 help="Enable the leak detection of DOM objects."), 194 help="Enable the leak detection of DOM objects."),
193 optparse.make_option("--enable-sanitizer", action="store_true", 195 optparse.make_option("--enable-sanitizer", action="store_true",
194 help="Only alert on sanitizer-related errors and crashes"), 196 help="Only alert on sanitizer-related errors and crashes"),
195 optparse.make_option("--exit-after-n-crashes-or-timeouts", type="int", 197 optparse.make_option("--exit-after-n-crashes-or-timeouts", type="int",
196 default=None, help="Exit after the first N crashes instead of " 198 default=None, help="Exit after the first N crashes instead of "
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 printer.print_config(port.results_directory()) 371 printer.print_config(port.results_directory())
370 372
371 run_details = manager.run(args) 373 run_details = manager.run(args)
372 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) 374 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code)
373 return run_details 375 return run_details
374 finally: 376 finally:
375 printer.cleanup() 377 printer.cleanup()
376 378
377 if __name__ == '__main__': 379 if __name__ == '__main__':
378 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 380 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698