| 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:
|
|
|