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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing.py

Issue 2693533003: webkitpy: Reworking test chunking for sharding. (Closed)
Patch Set: Rebase onto master. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 self._print_default("Pixel tests enabled") 94 self._print_default("Pixel tests enabled")
95 else: 95 else:
96 self._print_default("Pixel tests disabled") 96 self._print_default("Pixel tests disabled")
97 97
98 self._print_default("Regular timeout: %s, slow test timeout: %s" % 98 self._print_default("Regular timeout: %s, slow test timeout: %s" %
99 (self._options.time_out_ms, self._options.slow_time_ out_ms)) 99 (self._options.time_out_ms, self._options.slow_time_ out_ms))
100 100
101 self._print_default('Command line: ' + ' '.join(self._port.driver_cmd_li ne())) 101 self._print_default('Command line: ' + ' '.join(self._port.driver_cmd_li ne()))
102 self._print_default('') 102 self._print_default('')
103 103
104 def print_found(self, num_all_test_files, num_to_run, repeat_each, iteration s): 104 def print_found(self, num_all_test_files, num_shard_test_files, num_to_run, repeat_each, iterations):
105 found_str = 'Found %s; running %d' % (grammar.pluralize('test', num_all_ test_files), num_to_run) 105 found_str = 'Found %s' % grammar.pluralize('test', num_shard_test_files)
106 if num_all_test_files != num_shard_test_files:
107 found_str += ' (total %d)' % num_all_test_files
108 found_str += '; running %d' % num_to_run
qyearsley 2017/02/13 21:49:00 So this might say something like "Found 2090 (tota
mithro 2017/02/14 00:40:03 I bounced back and forth between putting the total
106 if repeat_each * iterations > 1: 109 if repeat_each * iterations > 1:
107 found_str += ' (%d times each: --repeat-each=%d --iterations=%d)' % (repeat_each * iterations, repeat_each, iterations) 110 found_str += ' (%d times each: --repeat-each=%d --iterations=%d)' % (repeat_each * iterations, repeat_each, iterations)
108 found_str += ', skipping %d' % (num_all_test_files - num_to_run) 111 found_str += ', skipping %d' % (num_shard_test_files - num_to_run)
109 self._print_default(found_str + '.') 112 self._print_default(found_str + '.')
110 113
111 def print_expected(self, run_results, tests_with_result_type_callback): 114 def print_expected(self, run_results, tests_with_result_type_callback):
112 self._print_expected_results_of_type(run_results, test_expectations.PASS , "passes", tests_with_result_type_callback) 115 self._print_expected_results_of_type(run_results, test_expectations.PASS , "passes", tests_with_result_type_callback)
113 self._print_expected_results_of_type(run_results, test_expectations.FAIL , "failures", tests_with_result_type_callback) 116 self._print_expected_results_of_type(run_results, test_expectations.FAIL , "failures", tests_with_result_type_callback)
114 self._print_expected_results_of_type(run_results, test_expectations.FLAK Y, "flaky", tests_with_result_type_callback) 117 self._print_expected_results_of_type(run_results, test_expectations.FLAK Y, "flaky", tests_with_result_type_callback)
115 self._print_debug('') 118 self._print_debug('')
116 119
117 def print_workers_and_shards(self, num_workers, num_shards, num_locked_shard s): 120 def print_workers_and_shards(self, num_workers, num_shards, num_locked_shard s):
118 driver_name = self._port.driver_name() 121 driver_name = self._port.driver_name()
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 self._meter.write_throttled_update(msg) 436 self._meter.write_throttled_update(msg)
434 437
435 def write_update(self, msg): 438 def write_update(self, msg):
436 self._meter.write_update(msg) 439 self._meter.write_update(msg)
437 440
438 def writeln(self, msg): 441 def writeln(self, msg):
439 self._meter.writeln(msg) 442 self._meter.writeln(msg)
440 443
441 def flush(self): 444 def flush(self):
442 self._meter.flush() 445 self._meter.flush()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698