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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 ] | 1103 ] |
1104 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] | 1104 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] |
1105 + logdog_command + test_cmdline) | 1105 + logdog_command + test_cmdline) |
1106 elif use_x11 and test_type == 'windowed_test_launcher': | 1106 elif use_x11 and test_type == 'windowed_test_launcher': |
1107 extra_files = [ | 1107 extra_files = [ |
1108 '../../testing/test_env.py', | 1108 '../../testing/test_env.py', |
1109 '../../testing/xvfb.py', | 1109 '../../testing/xvfb.py', |
1110 ] | 1110 ] |
1111 cmdline = [ | 1111 cmdline = [ |
1112 '../../testing/xvfb.py', | 1112 '../../testing/xvfb.py', |
1113 '.', | |
1114 './' + str(executable) + executable_suffix, | 1113 './' + str(executable) + executable_suffix, |
1115 '--brave-new-test-launcher', | 1114 '--brave-new-test-launcher', |
1116 '--test-launcher-bot-mode', | 1115 '--test-launcher-bot-mode', |
1117 '--asan=%d' % asan, | 1116 '--asan=%d' % asan, |
1118 '--msan=%d' % msan, | 1117 '--msan=%d' % msan, |
1119 '--tsan=%d' % tsan, | 1118 '--tsan=%d' % tsan, |
1120 ] | 1119 ] |
1121 elif test_type in ('windowed_test_launcher', 'console_test_launcher'): | 1120 elif test_type in ('windowed_test_launcher', 'console_test_launcher'): |
1122 extra_files = [ | 1121 extra_files = [ |
1123 '../../testing/test_env.py' | 1122 '../../testing/test_env.py' |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 # Then check to see if the arg contains any metacharacters other than | 1569 # Then check to see if the arg contains any metacharacters other than |
1571 # double quotes; if it does, quote everything (including the double | 1570 # double quotes; if it does, quote everything (including the double |
1572 # quotes) for safety. | 1571 # quotes) for safety. |
1573 if any(a in UNSAFE_FOR_CMD for a in arg): | 1572 if any(a in UNSAFE_FOR_CMD for a in arg): |
1574 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1573 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1575 return arg | 1574 return arg |
1576 | 1575 |
1577 | 1576 |
1578 if __name__ == '__main__': | 1577 if __name__ == '__main__': |
1579 sys.exit(main(sys.argv[1:])) | 1578 sys.exit(main(sys.argv[1:])) |
OLD | NEW |