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

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: Fix mb.py's fix Created 5 years, 3 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 '--enable-gpu', 548 '--enable-gpu',
549 '--test-launcher-jobs=1', 549 '--test-launcher-jobs=1',
550 '--gtest_filter=%s' % gtest_filter, 550 '--gtest_filter=%s' % gtest_filter,
551 ] 551 ]
552 elif test_type == 'script': 552 elif test_type == 'script':
553 extra_files = [ 553 extra_files = [
554 '../../testing/test_env.py' 554 '../../testing/test_env.py'
555 ] 555 ]
556 cmdline = [ 556 cmdline = [
557 '../../testing/test_env.py', 557 '../../testing/test_env.py',
558 ] + ['../../' + self.ToSrcRelPath(gn_isolate_map[target]['script'])] 558 ] + ['../../' + self.ToSrcRelPath(gn_isolate_map[target]['script'])
559 ] + gn_isolate_map[target].get('args', [])
Dirk Pranke 2015/09/19 00:07:13 nit: can you reformat this to: cmdline = [ '.
nednguyen 2015/09/21 17:26:18 Done.
559 elif test_type in ('raw'): 560 elif test_type in ('raw'):
560 extra_files = [] 561 extra_files = []
561 cmdline = [ 562 cmdline = [
562 './' + str(target) + executable_suffix, 563 './' + str(target) + executable_suffix,
563 ] + gn_isolate_map[target].get('args') 564 ] + gn_isolate_map[target].get('args')
564 565
565 else: 566 else:
566 self.WriteFailureAndRaise('No command line for %s found (test type %s).' 567 self.WriteFailureAndRaise('No command line for %s found (test type %s).'
567 % (target, test_type), output_path=None) 568 % (target, test_type), output_path=None)
568 569
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 816
816 if __name__ == '__main__': 817 if __name__ == '__main__':
817 try: 818 try:
818 sys.exit(main(sys.argv[1:])) 819 sys.exit(main(sys.argv[1:]))
819 except MBErr as e: 820 except MBErr as e:
820 print(e) 821 print(e)
821 sys.exit(1) 822 sys.exit(1)
822 except KeyboardInterrupt: 823 except KeyboardInterrupt:
823 print("interrupted, exiting", stream=sys.stderr) 824 print("interrupted, exiting", stream=sys.stderr)
824 sys.exit(130) 825 sys.exit(130)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698