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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 '--project', 'chromium', | 1084 '--project', 'chromium', |
1085 '--service-account-json', | 1085 '--service-account-json', |
1086 '/creds/service_accounts/service-account-luci-logdog-publisher.json', | 1086 '/creds/service_accounts/service-account-luci-logdog-publisher.json', |
1087 '--prefix', 'android/swarming/logcats/${SWARMING_TASK_ID}', | 1087 '--prefix', 'android/swarming/logcats/${SWARMING_TASK_ID}', |
1088 '--source', '${ISOLATED_OUTDIR}/logcats', | 1088 '--source', '${ISOLATED_OUTDIR}/logcats', |
1089 '--name', 'unified_logcats', | 1089 '--name', 'unified_logcats', |
1090 ] | 1090 ] |
1091 test_cmdline = [ | 1091 test_cmdline = [ |
1092 self.PathJoin('bin', 'run_%s' % target), | 1092 self.PathJoin('bin', 'run_%s' % target), |
1093 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', | 1093 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', |
1094 '--target-devices-file', '${SWARMING_BOT_FILE}', | |
1095 '-v', | |
1096 ] | 1094 ] |
| 1095 if test_type != 'junit_test': |
| 1096 test_cmdline += ['--target-devices-file', '${SWARMING_BOT_FILE}',] |
1097 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] | 1097 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] |
1098 + logdog_command + test_cmdline) | 1098 + logdog_command + test_cmdline + ['-v']) |
1099 else: | 1099 else: |
1100 extra_files = ['../../testing/test_env.py'] | 1100 extra_files = ['../../testing/test_env.py'] |
1101 | 1101 |
1102 # This needs to mirror the settings in //build/config/ui.gni: | 1102 # This needs to mirror the settings in //build/config/ui.gni: |
1103 # use_x11 = is_linux && !use_ozone. | 1103 # use_x11 = is_linux && !use_ozone. |
1104 use_x11 = is_linux and not 'use_ozone=true' in vals['gn_args'] | 1104 use_x11 = is_linux and not 'use_ozone=true' in vals['gn_args'] |
1105 | 1105 |
1106 xvfb = use_x11 and test_type == 'windowed_test_launcher' | 1106 xvfb = use_x11 and test_type == 'windowed_test_launcher' |
1107 if xvfb: | 1107 if xvfb: |
1108 extra_files += [ | 1108 extra_files += [ |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 # Then check to see if the arg contains any metacharacters other than | 1563 # Then check to see if the arg contains any metacharacters other than |
1564 # double quotes; if it does, quote everything (including the double | 1564 # double quotes; if it does, quote everything (including the double |
1565 # quotes) for safety. | 1565 # quotes) for safety. |
1566 if any(a in UNSAFE_FOR_CMD for a in arg): | 1566 if any(a in UNSAFE_FOR_CMD for a in arg): |
1567 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1567 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1568 return arg | 1568 return arg |
1569 | 1569 |
1570 | 1570 |
1571 if __name__ == '__main__': | 1571 if __name__ == '__main__': |
1572 sys.exit(main(sys.argv[1:])) | 1572 sys.exit(main(sys.argv[1:])) |
OLD | NEW |