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

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

Issue 15790007: Fix webkitpy unittests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 "DumpRenderTree build is up-to-date."), 212 "DumpRenderTree build is up-to-date."),
213 optparse.make_option("-n", "--dry-run", action="store_true", 213 optparse.make_option("-n", "--dry-run", action="store_true",
214 default=False, 214 default=False,
215 help="Do everything but actually run the tests or upload results."), 215 help="Do everything but actually run the tests or upload results."),
216 optparse.make_option("--wrapper", 216 optparse.make_option("--wrapper",
217 help="wrapper command to insert before invocations of " 217 help="wrapper command to insert before invocations of "
218 "DumpRenderTree; option is split on whitespace before " 218 "DumpRenderTree; option is split on whitespace before "
219 "running. (Example: --wrapper='valgrind --smc-check=all')"), 219 "running. (Example: --wrapper='valgrind --smc-check=all')"),
220 optparse.make_option("-i", "--ignore-tests", action="append", default=[] , 220 optparse.make_option("-i", "--ignore-tests", action="append", default=[] ,
221 help="directories or test to ignore (may specify multiple times)"), 221 help="directories or test to ignore (may specify multiple times)"),
222 optparse.make_option("--ignore-flaky-tests", action="store", default="de fault", 222 optparse.make_option("--ignore-flaky-tests", action="store",
223 help=("Control whether tests that are flaky on the bots get ignored. " 223 help=("Control whether tests that are flaky on the bots get ignored. "
224 "'default' == Don't use the bot data."
225 "'very-flaky' == Ignore any tests that flaked more than once on the bot." 224 "'very-flaky' == Ignore any tests that flaked more than once on the bot."
226 "'maybe-flaky' == Ignore any tests that flaked once on the bot." )), 225 "'maybe-flaky' == Ignore any tests that flaked once on the bot." )),
227 optparse.make_option("--test-list", action="append", 226 optparse.make_option("--test-list", action="append",
228 help="read list of tests to run from file", metavar="FILE"), 227 help="read list of tests to run from file", metavar="FILE"),
229 optparse.make_option("--skipped", action="store", default="default", 228 optparse.make_option("--skipped", action="store", default="default",
230 help=("control how tests marked SKIP are run. " 229 help=("control how tests marked SKIP are run. "
231 "'default' == Skip tests unless explicitly listed on the comman d line, " 230 "'default' == Skip tests unless explicitly listed on the comman d line, "
232 "'ignore' == Run them anyway, " 231 "'ignore' == Run them anyway, "
233 "'only' == only run the SKIP tests, " 232 "'only' == only run the SKIP tests, "
234 "'always' == always skip, even if listed on the command line.") ), 233 "'always' == always skip, even if listed on the command line.") ),
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 printer.print_config(port.results_directory()) 379 printer.print_config(port.results_directory())
381 380
382 run_details = manager.run(args) 381 run_details = manager.run(args)
383 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) 382 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code)
384 return run_details 383 return run_details
385 finally: 384 finally:
386 printer.cleanup() 385 printer.cleanup()
387 386
388 if __name__ == '__main__': 387 if __name__ == '__main__':
389 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 388 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698