Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 help="Set the maximum number of locked shards"), | 326 help="Set the maximum number of locked shards"), |
| 327 optparse.make_option( | 327 optparse.make_option( |
| 328 "--nocheck-sys-deps", | 328 "--nocheck-sys-deps", |
| 329 action="store_true", | 329 action="store_true", |
| 330 default=False, | 330 default=False, |
| 331 help="Don't check the system dependencies (themes)"), | 331 help="Don't check the system dependencies (themes)"), |
| 332 optparse.make_option( | 332 optparse.make_option( |
| 333 "--order", | 333 "--order", |
| 334 action="store", | 334 action="store", |
| 335 default="natural", | 335 default="natural", |
| 336 help=("determine the order in which the test cases will be run. " | 336 help=("Determine the order in which the test cases will be run. " |
| 337 "'none' == use the order in which the tests were listed " | 337 "'none' == use the order in which the tests were listed " |
| 338 "either in arguments or test list, " | 338 "either in arguments or test list, " |
| 339 "'natural' == use the natural order (default), " | 339 "'natural' == use the natural order (default), " |
| 340 "'random-seeded' == randomize the test order using a fixed seed, " | 340 "'random' == pseudorandom order. Seed can be given with " |
| 341 "'random' == randomize the test order.")), | 341 "--seed, otherwise a new seed will be generated.")), |
| 342 optparse.make_option( | 342 optparse.make_option( |
| 343 "--profile", | 343 "--profile", |
| 344 action="store_true", | 344 action="store_true", |
| 345 help="Output per-test profile information."), | 345 help="Output per-test profile information."), |
| 346 optparse.make_option( | 346 optparse.make_option( |
| 347 "--profiler", | 347 "--profiler", |
| 348 action="store", | 348 action="store", |
| 349 help="Output per-test profile information, using the specified p rofiler."), | 349 help="Output per-test profile information, using the specified p rofiler."), |
| 350 optparse.make_option( | 350 optparse.make_option( |
| 351 "--repeat-each", | 351 "--repeat-each", |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 375 help="Run a specified chunk (n:l), the nth of len l, of the layo ut tests"), | 375 help="Run a specified chunk (n:l), the nth of len l, of the layo ut tests"), |
| 376 optparse.make_option( | 376 optparse.make_option( |
| 377 "--run-part", | 377 "--run-part", |
| 378 help="Run a specified part (n:m), the nth of m parts, of the lay out tests"), | 378 help="Run a specified part (n:m), the nth of m parts, of the lay out tests"), |
| 379 optparse.make_option( | 379 optparse.make_option( |
| 380 "--run-singly", | 380 "--run-singly", |
| 381 action="store_true", | 381 action="store_true", |
| 382 default=False, | 382 default=False, |
| 383 help="DEPRECATED, same as --batch-size=1 --verbose"), | 383 help="DEPRECATED, same as --batch-size=1 --verbose"), |
| 384 optparse.make_option( | 384 optparse.make_option( |
| 385 "--seed", | |
| 386 type="int", | |
| 387 default=None, | |
| 388 help="Seed to use for random test order. Only applicable in comb ination with --order=random."), | |
|
mithro
2016/09/06 02:02:25
For the help you should add what the default value
qyearsley
2016/09/06 17:22:48
Agreed - will add this.
qyearsley
2016/09/07 18:07:12
Now done
| |
| 389 optparse.make_option( | |
| 385 "--skipped", | 390 "--skipped", |
| 386 action="store", | 391 action="store", |
| 387 default=None, | 392 default=None, |
| 388 help=("control how tests marked SKIP are run. " | 393 help=("control how tests marked SKIP are run. " |
| 389 "'default' == Skip tests unless explicitly listed on the c ommand line, " | 394 "'default' == Skip tests unless explicitly listed on the c ommand line, " |
| 390 "'ignore' == Run them anyway, " | 395 "'ignore' == Run them anyway, " |
| 391 "'only' == only run the SKIP tests, " | 396 "'only' == only run the SKIP tests, " |
| 392 "'always' == always skip, even if listed on the command li ne.")), | 397 "'always' == always skip, even if listed on the command li ne.")), |
| 393 optparse.make_option( | 398 optparse.make_option( |
| 394 "--fastest", | 399 "--fastest", |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 _log.debug("\t%s", process) | 582 _log.debug("\t%s", process) |
| 578 | 583 |
| 579 return run_details | 584 return run_details |
| 580 | 585 |
| 581 finally: | 586 finally: |
| 582 printer.cleanup() | 587 printer.cleanup() |
| 583 | 588 |
| 584 if __name__ == '__main__': | 589 if __name__ == '__main__': |
| 585 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 590 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
| 586 sys.exit(exit_code) | 591 sys.exit(exit_code) |
| OLD | NEW |