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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

Issue 2656813002: run-webkit-tests: Extract slowness information from MANIFEST.json. (Closed)
Patch Set: Improve regex matching, add _get_extras_from_manifest_item() Created 3 years, 11 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 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 """ 275 """
276 return self._is_http_test(test_file) or self._is_perf_test(test_file) 276 return self._is_http_test(test_file) or self._is_perf_test(test_file)
277 277
278 def _test_is_expected_missing(self, test_file): 278 def _test_is_expected_missing(self, test_file):
279 expectations = self._expectations.model().get_expectations(test_file) 279 expectations = self._expectations.model().get_expectations(test_file)
280 return (test_expectations.MISSING in expectations or 280 return (test_expectations.MISSING in expectations or
281 test_expectations.NEEDS_REBASELINE in expectations or 281 test_expectations.NEEDS_REBASELINE in expectations or
282 test_expectations.NEEDS_MANUAL_REBASELINE in expectations) 282 test_expectations.NEEDS_MANUAL_REBASELINE in expectations)
283 283
284 def _test_is_slow(self, test_file): 284 def _test_is_slow(self, test_file):
285 return test_expectations.SLOW in self._expectations.model().get_expectat ions(test_file) 285 return test_expectations.SLOW in self._expectations.model().get_expectat ions(test_file) or self._port.is_slow_wpt_test(test_file)
286 286
287 def _needs_servers(self, test_names): 287 def _needs_servers(self, test_names):
288 return any(self._test_requires_lock(test_name) for test_name in test_nam es) 288 return any(self._test_requires_lock(test_name) for test_name in test_nam es)
289 289
290 def _rename_results_folder(self): 290 def _rename_results_folder(self):
291 try: 291 try:
292 timestamp = time.strftime( 292 timestamp = time.strftime(
293 "%Y-%m-%d-%H-%M-%S", time.localtime( 293 "%Y-%m-%d-%H-%M-%S", time.localtime(
294 self._filesystem.mtime(self._filesystem.join(self._results_d irectory, "results.html")))) 294 self._filesystem.mtime(self._filesystem.join(self._results_d irectory, "results.html"))))
295 except (IOError, OSError) as error: 295 except (IOError, OSError) as error:
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 stats = {} 539 stats = {}
540 for result in initial_results.results_by_name.values(): 540 for result in initial_results.results_by_name.values():
541 if result.type != test_expectations.SKIP: 541 if result.type != test_expectations.SKIP:
542 stats[result.test_name] = {'results': (_worker_number(result.wor ker_name), result.test_number, result.pid, int( 542 stats[result.test_name] = {'results': (_worker_number(result.wor ker_name), result.test_number, result.pid, int(
543 result.test_run_time * 1000), int(result.total_run_time * 10 00))} 543 result.test_run_time * 1000), int(result.total_run_time * 10 00))}
544 stats_trie = {} 544 stats_trie = {}
545 for name, value in stats.iteritems(): 545 for name, value in stats.iteritems():
546 json_results_generator.add_path_to_trie(name, value, stats_trie) 546 json_results_generator.add_path_to_trie(name, value, stats_trie)
547 return stats_trie 547 return stats_trie
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/SlowTests ('k') | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698