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

Unified Diff: Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py

Issue 546133003: Reformat webkitpy.layout_tests w/ format-webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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: Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py b/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py
index 15bc1f00e330810515c8ce20cd2a1849fd5c65ad..7e45febec5f51891326efb0e754c2bdb8358dcdc 100755
--- a/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py
+++ b/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py
@@ -37,7 +37,7 @@ def main(host, argv):
parser.add_option('-f', '--forward', action='store', type='int',
help='group times by first N directories of test')
parser.add_option('-b', '--backward', action='store', type='int',
- help='group times by last N directories of test')
+ help='group times by last N directories of test')
parser.add_option('--fastest', action='store', type='float',
help='print a list of tests that will take N % of the time')
@@ -76,9 +76,9 @@ def print_times(host, options, times):
by_key = times_by_key(times, options.forward, options.backward)
for key in sorted(by_key):
if key:
- host.print_("%s %d" % (key, by_key[key]))
+ host.print_('%s %d' % (key, by_key[key]))
else:
- host.print_("%d" % by_key[key])
+ host.print_('%d' % by_key[key])
def print_fastest(host, port, options, times):
@@ -106,14 +106,14 @@ def print_fastest(host, port, options, times):
while tests_by_time and total_so_far <= budget:
test = tests_by_time.pop(0)
test_time = times[test]
- # Make sure test time > 0 so we don't include tests that are skipped.
+ # Make sure test time > 0 so we don't include tests that are skipped.
if test_time and total_so_far + test_time <= budget:
fast_tests_by_key[key].append(test)
total_so_far += test_time
for k in sorted(fast_tests_by_key):
for t in fast_tests_by_key[k]:
- host.print_("%s %d" % (t, times[t]))
+ host.print_('%s %d' % (t, times[t]))
return
@@ -141,7 +141,7 @@ def convert_trie_to_flat_paths(trie, prefix=None):
result = {}
for name, data in trie.iteritems():
if prefix:
- name = prefix + "/" + name
+ name = prefix + '/' + name
if isinstance(data, int):
result[name] = data
else:

Powered by Google App Engine
This is Rietveld 408576698