Chromium Code Reviews| 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1050 extra_files = [ | 1050 extra_files = [ |
| 1051 '../../testing/test_env.py' | 1051 '../../testing/test_env.py' |
| 1052 ] | 1052 ] |
| 1053 gtest_filter = gn_isolate_map[target]['gtest_filter'] | 1053 gtest_filter = gn_isolate_map[target]['gtest_filter'] |
| 1054 cmdline = [ | 1054 cmdline = [ |
| 1055 '../../testing/test_env.py', | 1055 '../../testing/test_env.py', |
| 1056 './browser_tests' + executable_suffix, | 1056 './browser_tests' + executable_suffix, |
| 1057 '--test-launcher-bot-mode', | 1057 '--test-launcher-bot-mode', |
| 1058 '--enable-gpu', | 1058 '--enable-gpu', |
| 1059 '--test-launcher-jobs=1', | 1059 '--test-launcher-jobs=1', |
| 1060 '--gtest_filter=%s' % gtest_filter, | |
| 1061 ] | 1060 ] |
| 1061 if gtest_filter: | |
| 1062 cmdline.extend(('--gtest_filter=%s' % gtest_filter)) | |
|
Dirk Pranke
2016/08/03 22:33:44
ick. I'm surprised this didn't cause more problems
M-A Ruel
2016/08/03 22:37:58
This was broken, fixed in patchset 4.
| |
| 1062 elif test_type == 'script': | 1063 elif test_type == 'script': |
| 1063 extra_files = [ | 1064 extra_files = [ |
| 1064 '../../testing/test_env.py' | 1065 '../../testing/test_env.py' |
| 1065 ] | 1066 ] |
| 1066 cmdline = [ | 1067 cmdline = [ |
| 1067 '../../testing/test_env.py', | 1068 '../../testing/test_env.py', |
| 1068 '../../' + self.ToSrcRelPath(gn_isolate_map[target]['script']) | 1069 '../../' + self.ToSrcRelPath(gn_isolate_map[target]['script']) |
| 1069 ] | 1070 ] |
| 1070 elif test_type in ('raw'): | 1071 elif test_type in ('raw'): |
| 1071 extra_files = [] | 1072 extra_files = [] |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1502 # Then check to see if the arg contains any metacharacters other than | 1503 # Then check to see if the arg contains any metacharacters other than |
| 1503 # double quotes; if it does, quote everything (including the double | 1504 # double quotes; if it does, quote everything (including the double |
| 1504 # quotes) for safety. | 1505 # quotes) for safety. |
| 1505 if any(a in UNSAFE_FOR_CMD for a in arg): | 1506 if any(a in UNSAFE_FOR_CMD for a in arg): |
| 1506 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1507 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
| 1507 return arg | 1508 return arg |
| 1508 | 1509 |
| 1509 | 1510 |
| 1510 if __name__ == '__main__': | 1511 if __name__ == '__main__': |
| 1511 sys.exit(main(sys.argv[1:])) | 1512 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |