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

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

Issue 2180563002: Allow specifying alternate GN directories for run-perf-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py ('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 # 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 @staticmethod 74 @staticmethod
75 def _parse_args(args=None): 75 def _parse_args(args=None):
76 def _expand_path(option, opt_str, value, parser): 76 def _expand_path(option, opt_str, value, parser):
77 path = os.path.expandvars(os.path.expanduser(value)) 77 path = os.path.expandvars(os.path.expanduser(value))
78 setattr(parser.values, option.dest, path) 78 setattr(parser.values, option.dest, path)
79 perf_option_list = [ 79 perf_option_list = [
80 optparse.make_option('--debug', action='store_const', const='Debug', dest="configuration", 80 optparse.make_option('--debug', action='store_const', const='Debug', dest="configuration",
81 help='Set the configuration to Debug'), 81 help='Set the configuration to Debug'),
82 optparse.make_option('--release', action='store_const', const='Relea se', dest="configuration", 82 optparse.make_option('--release', action='store_const', const='Relea se', dest="configuration",
83 help='Set the configuration to Release'), 83 help='Set the configuration to Release'),
84 optparse.make_option('-t', '--target', dest='configuration',
85 help='Specify the target build subdirectory und er src/out/'),
84 optparse.make_option("--platform", 86 optparse.make_option("--platform",
85 help="Specify port/platform being tested (e.g. mac)"), 87 help="Specify port/platform being tested (e.g. mac)"),
86 optparse.make_option("--chromium", 88 optparse.make_option("--chromium",
87 action="store_const", const='chromium', dest='p latform', help='Alias for --platform=chromium'), 89 action="store_const", const='chromium', dest='p latform', help='Alias for --platform=chromium'),
88 optparse.make_option("--android", 90 optparse.make_option("--android",
89 action="store_const", const='android', dest='pl atform', help='Alias for --platform=android'), 91 action="store_const", const='android', dest='pl atform', help='Alias for --platform=android'),
90 optparse.make_option("--builder-name", 92 optparse.make_option("--builder-name",
91 help=("The name of the builder shown on the wat erfall running this script e.g. google-mac-2.")), 93 help=("The name of the builder shown on the wat erfall running this script e.g. google-mac-2.")),
92 optparse.make_option("--build-number", 94 optparse.make_option("--build-number",
93 help=("The build number of the builder running this script.")), 95 help=("The build number of the builder running this script.")),
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 if metrics: 373 if metrics:
372 self._results.append((test, metrics)) 374 self._results.append((test, metrics))
373 else: 375 else:
374 failures += 1 376 failures += 1
375 _log.error('FAILED') 377 _log.error('FAILED')
376 378
377 _log.info('Finished: %f s' % (time.time() - start_time)) 379 _log.info('Finished: %f s' % (time.time() - start_time))
378 _log.info('') 380 _log.info('')
379 381
380 return failures 382 return failures
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698