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

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

Issue 2557673005: Roll chromium_revision 3cd4e5505f..b4a2bcaef4 (436604:437198) (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « DEPS ('k') | tools/mb/mb_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """MB - the Meta-Build wrapper around GYP and GN 10 """MB - the Meta-Build wrapper around GYP and GN
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 ] 1135 ]
1136 1136
1137 asan = 'is_asan=true' in vals['gn_args'] 1137 asan = 'is_asan=true' in vals['gn_args']
1138 msan = 'is_msan=true' in vals['gn_args'] 1138 msan = 'is_msan=true' in vals['gn_args']
1139 tsan = 'is_tsan=true' in vals['gn_args'] 1139 tsan = 'is_tsan=true' in vals['gn_args']
1140 1140
1141 executable_prefix = '.\\' if self.platform == 'win32' else './' 1141 executable_prefix = '.\\' if self.platform == 'win32' else './'
1142 executable_suffix = '.exe' if self.platform == 'win32' else '' 1142 executable_suffix = '.exe' if self.platform == 'win32' else ''
1143 executable = executable_prefix + target + executable_suffix 1143 executable = executable_prefix + target + executable_suffix
1144 1144
1145 cmdline = (['../../testing/xvfb.py', '.'] if xvfb else 1145 cmdline = (['../../testing/xvfb.py'] if xvfb else
1146 ['../../testing/test_env.py']) 1146 ['../../testing/test_env.py'])
1147 if memcheck: 1147 if memcheck:
1148 cmdline += memcheck_cmdline 1148 cmdline += memcheck_cmdline
1149 elif gtest_parallel: 1149 elif gtest_parallel:
1150 cmdline += gtest_parallel_wrapper 1150 cmdline += gtest_parallel_wrapper
1151 cmdline += [ 1151 cmdline += [
1152 executable, 1152 executable,
1153 '--', 1153 '--',
1154 '--asan=%d' % asan, 1154 '--asan=%d' % asan,
1155 '--msan=%d' % msan, 1155 '--msan=%d' % msan,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 # Then check to see if the arg contains any metacharacters other than 1562 # Then check to see if the arg contains any metacharacters other than
1563 # double quotes; if it does, quote everything (including the double 1563 # double quotes; if it does, quote everything (including the double
1564 # quotes) for safety. 1564 # quotes) for safety.
1565 if any(a in UNSAFE_FOR_CMD for a in arg): 1565 if any(a in UNSAFE_FOR_CMD for a in arg):
1566 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) 1566 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg)
1567 return arg 1567 return arg
1568 1568
1569 1569
1570 if __name__ == '__main__': 1570 if __name__ == '__main__':
1571 sys.exit(main(sys.argv[1:])) 1571 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « DEPS ('k') | tools/mb/mb_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698