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

Side by Side Diff: tools/mb/mb.py

Issue 1354223004: Run telemetry_gpu_unittests via isolate on "Linux Tests" and trybot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up debug printing Created 5 years, 2 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
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 """MB - the Meta-Build wrapper around GYP and GN 6 """MB - the Meta-Build wrapper around GYP and GN
7 7
8 MB is a wrapper script for GYP and GN that can be used to generate build files 8 MB is a wrapper script for GYP and GN that can be used to generate build files
9 for sets of canned configurations and analyze them. 9 for sets of canned configurations and analyze them.
10 """ 10 """
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 '--enable-gpu', 550 '--enable-gpu',
551 '--test-launcher-jobs=1', 551 '--test-launcher-jobs=1',
552 '--gtest_filter=%s' % gtest_filter, 552 '--gtest_filter=%s' % gtest_filter,
553 ] 553 ]
554 elif test_type == 'script': 554 elif test_type == 'script':
555 extra_files = [ 555 extra_files = [
556 '../../testing/test_env.py' 556 '../../testing/test_env.py'
557 ] 557 ]
558 cmdline = [ 558 cmdline = [
559 '../../testing/test_env.py', 559 '../../testing/test_env.py',
560 ] + ['../../' + self.ToSrcRelPath(gn_isolate_map[target]['script'])] 560 '../../' + self.ToSrcRelPath(gn_isolate_map[target]['script'])
561 ] + gn_isolate_map[target].get('args', [])
M-A Ruel 2015/09/22 17:08:19 It'd be more readable to use: ] cmdline.extend(gn_
Dirk Pranke 2015/09/22 17:48:52 meh :)
561 elif test_type in ('raw'): 562 elif test_type in ('raw'):
562 extra_files = [] 563 extra_files = []
563 cmdline = [ 564 cmdline = [
564 './' + str(target) + executable_suffix, 565 './' + str(target) + executable_suffix,
565 ] + gn_isolate_map[target].get('args') 566 ] + gn_isolate_map[target].get('args')
566 567
567 else: 568 else:
568 self.WriteFailureAndRaise('No command line for %s found (test type %s).' 569 self.WriteFailureAndRaise('No command line for %s found (test type %s).'
569 % (target, test_type), output_path=None) 570 % (target, test_type), output_path=None)
570 571
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 818
818 if __name__ == '__main__': 819 if __name__ == '__main__':
819 try: 820 try:
820 sys.exit(main(sys.argv[1:])) 821 sys.exit(main(sys.argv[1:]))
821 except MBErr as e: 822 except MBErr as e:
822 print(e) 823 print(e)
823 sys.exit(1) 824 sys.exit(1)
824 except KeyboardInterrupt: 825 except KeyboardInterrupt:
825 print("interrupted, exiting", stream=sys.stderr) 826 print("interrupted, exiting", stream=sys.stderr)
826 sys.exit(130) 827 sys.exit(130)
OLDNEW
« infra/scripts/runtest_wrapper.py ('K') | « testing/scripts/run_telemetry_as_googletest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698