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

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

Issue 2763323003: MB: Add --quick flag for low_bandwidth_audio_test (Closed)
Patch Set: Add support for args and change type to non_parallel_console_test_launcher Created 3 years, 9 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
« no previous file with comments | « tools-webrtc/mb/gn_isolate_map.pyl ('k') | no next file » | 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 elif gtest_parallel: 1128 elif gtest_parallel:
1129 cmdline += gtest_parallel_wrapper 1129 cmdline += gtest_parallel_wrapper
1130 cmdline += [ 1130 cmdline += [
1131 executable, 1131 executable,
1132 '--', 1132 '--',
1133 '--asan=%d' % asan, 1133 '--asan=%d' % asan,
1134 '--msan=%d' % msan, 1134 '--msan=%d' % msan,
1135 '--tsan=%d' % tsan, 1135 '--tsan=%d' % tsan,
1136 ] 1136 ]
1137 1137
1138 cmdline += isolate_map[target].get('args', [])
1139
1138 return cmdline, extra_files 1140 return cmdline, extra_files
1139 1141
1140 def ToAbsPath(self, build_path, *comps): 1142 def ToAbsPath(self, build_path, *comps):
1141 return self.PathJoin(self.src_dir, 1143 return self.PathJoin(self.src_dir,
1142 self.ToSrcRelPath(build_path), 1144 self.ToSrcRelPath(build_path),
1143 *comps) 1145 *comps)
1144 1146
1145 def ToSrcRelPath(self, path): 1147 def ToSrcRelPath(self, path):
1146 """Returns a relative path from the top of the repo.""" 1148 """Returns a relative path from the top of the repo."""
1147 if path.startswith('//'): 1149 if path.startswith('//'):
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 # Then check to see if the arg contains any metacharacters other than 1543 # Then check to see if the arg contains any metacharacters other than
1542 # double quotes; if it does, quote everything (including the double 1544 # double quotes; if it does, quote everything (including the double
1543 # quotes) for safety. 1545 # quotes) for safety.
1544 if any(a in UNSAFE_FOR_CMD for a in arg): 1546 if any(a in UNSAFE_FOR_CMD for a in arg):
1545 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) 1547 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg)
1546 return arg 1548 return arg
1547 1549
1548 1550
1549 if __name__ == '__main__': 1551 if __name__ == '__main__':
1550 sys.exit(main(sys.argv[1:])) 1552 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « tools-webrtc/mb/gn_isolate_map.pyl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698