| Index: third_party/WebKit/Tools/Scripts/print-test-ordering
|
| diff --git a/third_party/WebKit/Tools/Scripts/print-test-ordering b/third_party/WebKit/Tools/Scripts/print-test-ordering
|
| index 0d3997d6214c282f94771b232ae08c329836479c..7e7b35e6602f09fd50555c4965d38902a654c857 100755
|
| --- a/third_party/WebKit/Tools/Scripts/print-test-ordering
|
| +++ b/third_party/WebKit/Tools/Scripts/print-test-ordering
|
| @@ -34,6 +34,7 @@ import sys
|
|
|
| from webkitpy.common.host import Host
|
|
|
| +
|
| def main(argv):
|
| parser = optparse.OptionParser(usage='%prog [stats.json]')
|
| parser.description = "Prints out lists of tests run on each worker as per the stats.json file."
|
| @@ -46,7 +47,7 @@ def main(argv):
|
| stats_path = host.filesystem.join(host.port_factory.get().results_directory(), 'stats.json')
|
|
|
| with open(stats_path, 'r') as fp:
|
| - stats_trie = json.load(fp)
|
| + stats_trie = json.load(fp)
|
|
|
| stats = convert_trie_to_flat_paths(stats_trie)
|
| stats_by_worker = {}
|
| @@ -62,10 +63,11 @@ def main(argv):
|
|
|
| for worker in sorted(stats_by_worker.keys()):
|
| print worker + ':'
|
| - for test in sorted(stats_by_worker[worker], key=lambda test:test["number"]):
|
| + for test in sorted(stats_by_worker[worker], key=lambda test: test["number"]):
|
| print test["name"]
|
| print
|
|
|
| +
|
| def convert_trie_to_flat_paths(trie, prefix=None):
|
| # Cloned from webkitpy.layout_tests.layout_package.json_results_generator
|
| # so that this code can stand alone.
|
| @@ -81,5 +83,5 @@ def convert_trie_to_flat_paths(trie, prefix=None):
|
| return result
|
|
|
|
|
| -if __name__ == '__main__':
|
| +if __name__ == '__main__':
|
| sys.exit(main(sys.argv[1:]))
|
|
|