OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """MB - the Meta-Build wrapper around GYP and GN | 6 """MB - the Meta-Build wrapper around GYP and GN |
7 | 7 |
8 MB is a wrapper script for GYP and GN that can be used to generate build files | 8 MB is a wrapper script for GYP and GN that can be used to generate build files |
9 for sets of canned configurations and analyze them. | 9 for sets of canned configurations and analyze them. |
10 """ | 10 """ |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1003 target_name = self.GNTargetName(target) | 1003 target_name = self.GNTargetName(target) |
1004 test_type = gn_isolate_map[target_name]['type'] | 1004 test_type = gn_isolate_map[target_name]['type'] |
1005 | 1005 |
1006 executable = gn_isolate_map[target_name].get('executable', target_name) | 1006 executable = gn_isolate_map[target_name].get('executable', target_name) |
1007 executable_suffix = '.exe' if self.platform == 'win32' else '' | 1007 executable_suffix = '.exe' if self.platform == 'win32' else '' |
1008 | 1008 |
1009 cmdline = [] | 1009 cmdline = [] |
1010 extra_files = [] | 1010 extra_files = [] |
1011 | 1011 |
1012 if android and test_type != "script": | 1012 if android and test_type != "script": |
1013 cmdline = [ | 1013 logdog_command = [ |
1014 '--logdog-bin-cmd', './../../bin/logdog_butler', | |
ghost stip (do not use)
2016/07/29 21:56:40
CHROMIUM_SRC_DIR/bin/ ? see line 31
nicholaslin
2016/07/29 23:54:06
Tried that before. That's for the buildbot slave n
| |
1015 '--project', 'chromium', | |
1016 '--logdog-server', 'luci-logdog.appspot.com', | |
dnj
2016/07/29 22:35:34
Specifying this twice? Either use the default or r
nicholaslin
2016/07/29 23:54:06
Removed it here.
| |
1017 '--service-account-json', | |
1018 '/creds/service_accounts/service-account-luci-logdog-publisher.json', | |
dnj
2016/07/29 22:35:34
Are we comfortable hardcoding this in "chromium/sr
dnj
2016/07/30 15:47:48
Ping on this. We're baking Infra credential paths
nicholaslin
2016/08/02 22:05:13
Noted. Will think about alternatives.
| |
1019 '--prefix', 'android/swarming/logcats/${SWARMING_TASK_ID}', | |
1020 '--source', '${ISOLATED_OUTDIR}/logcats', | |
1021 '--name', 'unified_logcats', | |
1022 ] | |
1023 test_cmdline = [ | |
1014 self.PathJoin('bin', 'run_%s' % target_name), | 1024 self.PathJoin('bin', 'run_%s' % target_name), |
1015 '--logcat-output-dir', '${ISOLATED_OUTDIR}/logcats', | 1025 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', |
ghost stip (do not use)
2016/07/29 21:56:40
unified_logcats?
nicholaslin
2016/07/29 23:54:06
Done.
Do we want it to be named unified logcats?
| |
1016 '--target-devices-file', '${SWARMING_BOT_FILE}', | 1026 '--target-devices-file', '${SWARMING_BOT_FILE}', |
1017 '-v', | 1027 '-v' |
1018 ] | 1028 ] |
1029 cmdline = (['./../../build/android/logdog_wrapper/logdog_test_wrapper.py'] | |
ghost stip (do not use)
2016/07/29 21:56:40
os.path.join(CHROMIUM_SRC_DIR, 'build', 'android')
nicholaslin
2016/07/29 23:54:06
see above.
| |
1030 + logdog_command + test_cmdline) | |
1019 elif use_x11 and test_type == 'windowed_test_launcher': | 1031 elif use_x11 and test_type == 'windowed_test_launcher': |
1020 extra_files = [ | 1032 extra_files = [ |
1021 'xdisplaycheck', | 1033 'xdisplaycheck', |
1022 '../../testing/test_env.py', | 1034 '../../testing/test_env.py', |
1023 '../../testing/xvfb.py', | 1035 '../../testing/xvfb.py', |
1024 ] | 1036 ] |
1025 cmdline = [ | 1037 cmdline = [ |
1026 '../../testing/xvfb.py', | 1038 '../../testing/xvfb.py', |
1027 '.', | 1039 '.', |
1028 './' + str(executable) + executable_suffix, | 1040 './' + str(executable) + executable_suffix, |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1501 # Then check to see if the arg contains any metacharacters other than | 1513 # Then check to see if the arg contains any metacharacters other than |
1502 # double quotes; if it does, quote everything (including the double | 1514 # double quotes; if it does, quote everything (including the double |
1503 # quotes) for safety. | 1515 # quotes) for safety. |
1504 if any(a in UNSAFE_FOR_CMD for a in arg): | 1516 if any(a in UNSAFE_FOR_CMD for a in arg): |
1505 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1517 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1506 return arg | 1518 return arg |
1507 | 1519 |
1508 | 1520 |
1509 if __name__ == '__main__': | 1521 if __name__ == '__main__': |
1510 sys.exit(main(sys.argv[1:])) | 1522 sys.exit(main(sys.argv[1:])) |
OLD | NEW |