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

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

Issue 647103003: Make telemetry_unittests.py work on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 filter_tests = [] 15 filter_tests = []
16 if args.filter_file: 16 if args.filter_file:
17 filter_tests = json.load(args.filter_file) 17 filter_tests = json.load(args.filter_file)
18 18
19 with common.temporary_file() as tempfile_path: 19 with common.temporary_file() as tempfile_path:
20 rc = common.run_command([ 20 rc = common.run_command([
21 sys.executable,
21 os.path.join(args.paths['build'], 'scripts', 'tools', 'runit.py'), 22 os.path.join(args.paths['build'], 'scripts', 'tools', 'runit.py'),
22 '--show-path', 23 '--show-path',
23 os.path.join(args.paths['build'], 'scripts', 'slave', 'runtest.py'), 24 os.path.join(args.paths['build'], 'scripts', 'slave', 'runtest.py'),
24 '--target', args.build_config_fs, 25 '--target', args.build_config_fs,
25 '--xvfb', 26 '--xvfb',
26 '--annotate', 'gtest', 27 '--annotate', 'gtest',
27 '--test-type', 'telemetry_unittests', 28 '--test-type', 'telemetry_unittests',
28 '--builder-name', args.properties['buildername'], 29 '--builder-name', args.properties['buildername'],
29 '--slave-name', args.properties['slavename'], 30 '--slave-name', args.properties['slavename'],
30 '--build-number', str(args.properties['buildnumber']), 31 '--build-number', str(args.properties['buildnumber']),
(...skipping 22 matching lines...) Expand all
53 def main_compile_targets(args): 54 def main_compile_targets(args):
54 json.dump(['chrome'], args.output) 55 json.dump(['chrome'], args.output)
55 56
56 57
57 if __name__ == '__main__': 58 if __name__ == '__main__':
58 funcs = { 59 funcs = {
59 'run': main_run, 60 'run': main_run,
60 'compile_targets': main_compile_targets, 61 'compile_targets': main_compile_targets,
61 } 62 }
62 sys.exit(common.run_script(sys.argv[1:], funcs)) 63 sys.exit(common.run_script(sys.argv[1:], funcs))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698