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

Unified Diff: third_party/WebKit/Tools/Scripts/print-test-ordering

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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 side-by-side diff with in-line comments
Download patch
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:]))

Powered by Google App Engine
This is Rietveld 408576698