| OLD | NEW |
| 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 | 1089 |
| 1090 if not memcheck: | 1090 if not memcheck: |
| 1091 extra_files += [ | 1091 extra_files += [ |
| 1092 '../../third_party/gtest-parallel/gtest-parallel', | 1092 '../../third_party/gtest-parallel/gtest-parallel', |
| 1093 '../../tools-webrtc/gtest-parallel-wrapper.py', | 1093 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 1094 ] | 1094 ] |
| 1095 sep = '\\' if self.platform == 'win32' else '/' | 1095 sep = '\\' if self.platform == 'win32' else '/' |
| 1096 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs' | 1096 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs' |
| 1097 gtest_parallel_wrapper = [ | 1097 gtest_parallel_wrapper = [ |
| 1098 '../../tools-webrtc/gtest-parallel-wrapper.py', | 1098 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 1099 '--gtest_color=no', |
| 1099 '--output_dir=%s' % output_dir, | 1100 '--output_dir=%s' % output_dir, |
| 1100 ] | 1101 ] |
| 1101 | 1102 |
| 1102 asan = 'is_asan=true' in vals['gn_args'] | 1103 asan = 'is_asan=true' in vals['gn_args'] |
| 1103 msan = 'is_msan=true' in vals['gn_args'] | 1104 msan = 'is_msan=true' in vals['gn_args'] |
| 1104 tsan = 'is_tsan=true' in vals['gn_args'] | 1105 tsan = 'is_tsan=true' in vals['gn_args'] |
| 1105 | 1106 |
| 1106 executable_prefix = '.\\' if self.platform == 'win32' else './' | 1107 executable_prefix = '.\\' if self.platform == 'win32' else './' |
| 1107 executable_suffix = '.exe' if self.platform == 'win32' else '' | 1108 executable_suffix = '.exe' if self.platform == 'win32' else '' |
| 1108 executable = executable_prefix + target + executable_suffix | 1109 executable = executable_prefix + target + executable_suffix |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 # Then check to see if the arg contains any metacharacters other than | 1532 # Then check to see if the arg contains any metacharacters other than |
| 1532 # double quotes; if it does, quote everything (including the double | 1533 # double quotes; if it does, quote everything (including the double |
| 1533 # quotes) for safety. | 1534 # quotes) for safety. |
| 1534 if any(a in UNSAFE_FOR_CMD for a in arg): | 1535 if any(a in UNSAFE_FOR_CMD for a in arg): |
| 1535 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1536 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
| 1536 return arg | 1537 return arg |
| 1537 | 1538 |
| 1538 | 1539 |
| 1539 if __name__ == '__main__': | 1540 if __name__ == '__main__': |
| 1540 sys.exit(main(sys.argv[1:])) | 1541 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |