Changeset 129683 in webkit
- Timestamp:
- Sep 26, 2012 12:20:37 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r129672 r129683 1 2012-09-26 Marcelo Lira <marcelo.lira@openbossa.org> 2 3 run-perf-tests must expand environment variables in user provided paths 4 https://bugs.webkit.org/show_bug.cgi?id=97686 5 6 Reviewed by Ryosuke Niwa. 7 8 The run-perf-tests command line options that receive paths from the 9 user now expand any possible environment variables, because Python's 10 file handling methods do not handle those. 11 12 Examples: 13 run-perf-tests --platform=qt --release --output-json-path=~/perf-results 14 run-perf-tests --platform=qt --release --output-json-path=$HOME/perf-results 15 16 Also removed unused imports. 17 18 * Scripts/webkitpy/performance_tests/perftestsrunner.py: 19 (PerfTestsRunner._parse_args._expand_path): expand environment variables in a path passed via command line 20 (PerfTestsRunner._parse_args): 21 1 22 2012-09-26 Sheriff Bot <webkit.review.bot@gmail.com> 2 23 -
trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
r129580 r129683 30 30 """Run Inspector's perf tests in perf mode.""" 31 31 32 import os 32 33 import json 33 34 import logging 34 35 import optparse 35 import re36 import sys37 36 import time 38 37 … … 40 39 from webkitpy.common.host import Host 41 40 from webkitpy.common.net.file_uploader import FileUploader 42 from webkitpy.layout_tests.views import printing43 41 from webkitpy.performance_tests.perftest import PerfTestFactory 44 from webkitpy.performance_tests.perftest import ReplayPerfTest45 42 46 43 … … 74 71 @staticmethod 75 72 def _parse_args(args=None): 73 def _expand_path(option, opt_str, value, parser): 74 path = os.path.expandvars(os.path.expanduser(value)) 75 setattr(parser.values, option.dest, path) 76 76 perf_option_list = [ 77 77 optparse.make_option('--debug', action='store_const', const='Debug', dest="configuration", … … 99 99 optparse.make_option("--no-results", action="store_false", dest="generate_results", default=True, 100 100 help="Do no generate results JSON and results page."), 101 optparse.make_option("--output-json-path", 101 optparse.make_option("--output-json-path", action='callback', callback=_expand_path, type="str", 102 102 help="Path to generate a JSON file at; may contain previous results if it already exists."), 103 103 optparse.make_option("--reset-results", action="store_true", 104 104 help="Clears the content in the generated JSON file before adding the results."), 105 optparse.make_option("--slave-config-json-path", 105 optparse.make_option("--slave-config-json-path", action='callback', callback=_expand_path, type="str", 106 106 help="Only used on bots. Path to a slave configuration file."), 107 optparse.make_option("--source-json-path", dest="slave_config_json_path",107 optparse.make_option("--source-json-path", action='callback', callback=_expand_path, type="str", dest="slave_config_json_path", 108 108 # FIXME: Remove this option once build.webkit.org is updated to use --slave-config-json-path. 109 109 help="Deprecated. Overrides --slave-config-json-path."),
Note: See TracChangeset
for help on using the changeset viewer.