OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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) |
OLD | NEW |