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

Side by Side Diff: testing/scripts/webkit_python_tests.py

Issue 970903005: Fix webkit scripts on Windows (explicitly use sys.executable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « testing/scripts/webkit_lint.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import json 6 import json
7 import os 7 import os
8 import sys 8 import sys
9 9
10 10
11 import common 11 import common
12 12
13 13
14 def main_run(args): 14 def main_run(args):
15 with common.temporary_file() as tempfile_path: 15 with common.temporary_file() as tempfile_path:
16 rc = common.run_command([ 16 rc = common.run_command([
17 sys.executable,
17 os.path.join(common.SRC_DIR, 'third_party', 'WebKit', 18 os.path.join(common.SRC_DIR, 'third_party', 'WebKit',
18 'Tools', 'Scripts', 'test-webkitpy'), 19 'Tools', 'Scripts', 'test-webkitpy'),
19 '--write-full-results-to', tempfile_path, 20 '--write-full-results-to', tempfile_path,
20 ]) 21 ])
21 22
22 with open(tempfile_path) as f: 23 with open(tempfile_path) as f:
23 results = json.load(f) 24 results = json.load(f)
24 25
25 parsed_results = common.parse_common_test_results(results) 26 parsed_results = common.parse_common_test_results(results)
26 failures = parsed_results['unexpected_failures'] 27 failures = parsed_results['unexpected_failures']
(...skipping 10 matching lines...) Expand all
37 def main_compile_targets(args): 38 def main_compile_targets(args):
38 json.dump([], args.output) 39 json.dump([], args.output)
39 40
40 41
41 if __name__ == '__main__': 42 if __name__ == '__main__':
42 funcs = { 43 funcs = {
43 'run': main_run, 44 'run': main_run,
44 'compile_targets': main_compile_targets, 45 'compile_targets': main_compile_targets,
45 } 46 }
46 sys.exit(common.run_script(sys.argv[1:], funcs)) 47 sys.exit(common.run_script(sys.argv[1:], funcs))
OLDNEW
« no previous file with comments | « testing/scripts/webkit_lint.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698