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

Side by Side Diff: tools/testing/perf_testing/run_perf_tests.py

Issue 10577010: Get Dromaeo benchmarks running again. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « samples/third_party/dromaeo/Dromaeo.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import datetime 7 import datetime
8 import math 8 import math
9 try: 9 try:
10 from matplotlib.font_manager import FontProperties 10 from matplotlib.font_manager import FontProperties
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 """Move the appropriate version of ChromeDriver onto the path. 824 """Move the appropriate version of ChromeDriver onto the path.
825 TODO(efortuna): This is a total hack because the latest version of Chrome 825 TODO(efortuna): This is a total hack because the latest version of Chrome
826 (Dartium builds) requires a different version of ChromeDriver, that is 826 (Dartium builds) requires a different version of ChromeDriver, that is
827 incompatible with the release or beta Chrome and vice versa. Remove these 827 incompatible with the release or beta Chrome and vice versa. Remove these
828 shenanigans once we're back to both versions of Chrome using the same 828 shenanigans once we're back to both versions of Chrome using the same
829 version of ChromeDriver. IMPORTANT NOTE: This assumes your chromedriver is 829 version of ChromeDriver. IMPORTANT NOTE: This assumes your chromedriver is
830 in the default location (inside depot_tools). 830 in the default location (inside depot_tools).
831 """ 831 """
832 current_dir = os.getcwd() 832 current_dir = os.getcwd()
833 os.chdir(DART_INSTALL_LOCATION) 833 os.chdir(DART_INSTALL_LOCATION)
834 self.test.test_runner.run_cmd(['python', os.path.join(
835 'tools', 'get_drt.py'), '--chromedriver'])
834 path = os.environ['PATH'].split(os.pathsep) 836 path = os.environ['PATH'].split(os.pathsep)
835 orig_chromedriver_path = os.path.join('tools', 'testing', 837 orig_chromedriver_path = os.path.join('tools', 'testing',
836 'orig-chromedriver') 838 'orig-chromedriver')
837 dartium_chromedriver_path = os.path.join('tools', 'testing', 839 dartium_chromedriver_path = os.path.join('tools', 'testing',
838 'dartium-chromedriver') 840 'dartium-chromedriver')
839 extension = '' 841 extension = ''
840 if platform.system() == 'Windows': 842 if platform.system() == 'Windows':
841 extension = '.exe' 843 extension = '.exe'
842 844
843 def move_chromedriver(depot_tools, copy_to_depot_tools_dir=True, 845 def move_chromedriver(depot_tools, copy_to_depot_tools_dir=True,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 while True: 1257 while True:
1256 if runner.has_new_code(): 1258 if runner.has_new_code():
1257 runner.run_test_sequence() 1259 runner.run_test_sequence()
1258 else: 1260 else:
1259 time.sleep(200) 1261 time.sleep(200)
1260 else: 1262 else:
1261 runner.run_test_sequence() 1263 runner.run_test_sequence()
1262 1264
1263 if __name__ == '__main__': 1265 if __name__ == '__main__':
1264 main() 1266 main()
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/Dromaeo.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698