Chromium Code Reviews| Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
| index ffd6dd796fa944703dc79a9328108b3b474cccee..2d784957357136b6912592da50f4d54b7bf0c80b 100644 |
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
| @@ -337,7 +337,7 @@ def parse_args(args): |
| "either in arguments or test list, " |
| "'natural' == use the natural order (default), " |
| "'random' == pseudo-random order. Seed can be specified " |
| - "via --seed, otherwise a default seed will be used.")), |
| + "via --seed, otherwise it will default to the current unix timestamp.")), |
| optparse.make_option( |
| "--profile", |
| action="store_true", |
| @@ -383,7 +383,7 @@ def parse_args(args): |
| optparse.make_option( |
| "--seed", |
| type="int", |
| - default=4, # http://xkcd.com/221/ |
| + action="store", |
|
Dirk Pranke
2016/10/28 14:37:22
store is the default, so you don't actually need t
|
| help=("Seed to use for random test order (default: %default). " |
| "Only applicable in combination with --order=random.")), |
| optparse.make_option( |
| @@ -547,6 +547,8 @@ def _set_up_derived_options(port, options, args): |
| total_shards = int(port.host.environ['GTEST_TOTAL_SHARDS']) + 1 |
| options.run_part = '{0}:{1}'.format(shard_index, total_shards) |
| + if not options.seed: |
| + options.seed = port.host.unixtime() |
| def _run_tests(port, options, args, printer): |
| _set_up_derived_options(port, options, args) |