| 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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 '-v' | 1110 '-v' |
| 1111 ] | 1111 ] |
| 1112 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] | 1112 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] |
| 1113 + logdog_command + test_cmdline) | 1113 + logdog_command + test_cmdline) |
| 1114 elif use_x11 and test_type == 'windowed_test_launcher': | 1114 elif use_x11 and test_type == 'windowed_test_launcher': |
| 1115 extra_files = [ | 1115 extra_files = [ |
| 1116 'xdisplaycheck', | 1116 'xdisplaycheck', |
| 1117 '../../testing/test_env.py', | 1117 '../../testing/test_env.py', |
| 1118 '../../testing/xvfb.py', | 1118 '../../testing/xvfb.py', |
| 1119 '../../third_party/gtest-parallel/gtest-parallel', | 1119 '../../third_party/gtest-parallel/gtest-parallel', |
| 1120 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 1120 ] | 1121 ] |
| 1121 cmdline = [ | 1122 cmdline = [ |
| 1122 '../../testing/xvfb.py', | 1123 '../../testing/xvfb.py', |
| 1123 '.', | 1124 '.', |
| 1124 'python', | 1125 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 1125 '../../third_party/gtest-parallel/gtest-parallel', | |
| 1126 ] + common_cmdline | 1126 ] + common_cmdline |
| 1127 elif test_type in ('windowed_test_launcher', 'console_test_launcher'): | 1127 elif test_type in ('windowed_test_launcher', 'console_test_launcher'): |
| 1128 extra_files = [ | 1128 extra_files = [ |
| 1129 '../../testing/test_env.py', | 1129 '../../testing/test_env.py', |
| 1130 '../../third_party/gtest-parallel/gtest-parallel', | 1130 '../../third_party/gtest-parallel/gtest-parallel', |
| 1131 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 1131 ] | 1132 ] |
| 1132 cmdline = [ | 1133 cmdline = [ |
| 1133 '../../testing/test_env.py', | 1134 '../../testing/test_env.py', |
| 1134 'python', | 1135 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 1135 '../../third_party/gtest-parallel/gtest-parallel', | |
| 1136 ] + common_cmdline | 1136 ] + common_cmdline |
| 1137 elif test_type == 'non_parallel_console_test_launcher': | 1137 elif test_type == 'non_parallel_console_test_launcher': |
| 1138 extra_files = [ | 1138 extra_files = [ |
| 1139 '../../testing/test_env.py', | 1139 '../../testing/test_env.py', |
| 1140 ] | 1140 ] |
| 1141 cmdline = [ | 1141 cmdline = [ |
| 1142 '../../testing/test_env.py', | 1142 '../../testing/test_env.py', |
| 1143 ] + common_cmdline | 1143 ] + common_cmdline |
| 1144 else: | 1144 else: |
| 1145 self.WriteFailureAndRaise('No command line for %s found (test type %s).' | 1145 self.WriteFailureAndRaise('No command line for %s found (test type %s).' |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 # Then check to see if the arg contains any metacharacters other than | 1553 # Then check to see if the arg contains any metacharacters other than |
| 1554 # double quotes; if it does, quote everything (including the double | 1554 # double quotes; if it does, quote everything (including the double |
| 1555 # quotes) for safety. | 1555 # quotes) for safety. |
| 1556 if any(a in UNSAFE_FOR_CMD for a in arg): | 1556 if any(a in UNSAFE_FOR_CMD for a in arg): |
| 1557 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1557 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
| 1558 return arg | 1558 return arg |
| 1559 | 1559 |
| 1560 | 1560 |
| 1561 if __name__ == '__main__': | 1561 if __name__ == '__main__': |
| 1562 sys.exit(main(sys.argv[1:])) | 1562 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |