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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py

Issue 2496063002: Rename WebKitFinder -> BlinkFinder. (Closed)
Patch Set: Created 4 years, 1 month 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) 2012 Google Inc. All rights reserved. 1 # Copyright (C) 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 def __init__(self, args=None, port=None): 59 def __init__(self, args=None, port=None):
60 self._options, self._args = PerfTestsRunner._parse_args(args) 60 self._options, self._args = PerfTestsRunner._parse_args(args)
61 if port: 61 if port:
62 self._port = port 62 self._port = port
63 self._host = self._port.host 63 self._host = self._port.host
64 else: 64 else:
65 self._host = Host() 65 self._host = Host()
66 self._port = self._host.port_factory.get(self._options.platform, sel f._options) 66 self._port = self._host.port_factory.get(self._options.platform, sel f._options)
67 self._host.initialize_scm() 67 self._host.initialize_scm()
68 self._webkit_base_dir_len = len(self._port.webkit_base()) 68 self._blink_base_dir_len = len(self._port.blink_base())
69 self._base_path = self._port.perf_tests_dir() 69 self._base_path = self._port.perf_tests_dir()
70 self._timestamp = time.time() 70 self._timestamp = time.time()
71 self._utc_timestamp = datetime.datetime.utcnow() 71 self._utc_timestamp = datetime.datetime.utcnow()
72 72
73 @staticmethod 73 @staticmethod
74 def _parse_args(args=None): 74 def _parse_args(args=None):
75 def _expand_path(option, opt_str, value, parser): 75 def _expand_path(option, opt_str, value, parser):
76 path = os.path.expandvars(os.path.expanduser(value)) 76 path = os.path.expandvars(os.path.expanduser(value))
77 setattr(parser.values, option.dest, path) 77 setattr(parser.values, option.dest, path)
78 perf_option_list = [ 78 perf_option_list = [
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 if metrics: 373 if metrics:
374 self._results.append((test, metrics)) 374 self._results.append((test, metrics))
375 else: 375 else:
376 failures += 1 376 failures += 1
377 _log.error('FAILED') 377 _log.error('FAILED')
378 378
379 _log.info('Finished: %f s', time.time() - start_time) 379 _log.info('Finished: %f s', time.time() - start_time)
380 _log.info('') 380 _log.info('')
381 381
382 return failures 382 return failures
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698