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

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

Issue 2163833003: Logdog for logcats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try new test runner format Created 4 years, 5 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
OLDNEW
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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 target_name = self.GNTargetName(target) 988 target_name = self.GNTargetName(target)
989 test_type = gn_isolate_map[target_name]['type'] 989 test_type = gn_isolate_map[target_name]['type']
990 990
991 executable = gn_isolate_map[target_name].get('executable', target_name) 991 executable = gn_isolate_map[target_name].get('executable', target_name)
992 executable_suffix = '.exe' if self.platform == 'win32' else '' 992 executable_suffix = '.exe' if self.platform == 'win32' else ''
993 993
994 cmdline = [] 994 cmdline = []
995 extra_files = [] 995 extra_files = []
996 996
997 if android and test_type != "script": 997 if android and test_type != "script":
998 logdog_command = [
999 './../../bin/logdog_butler',
1000 '-project', 'chromium',
1001 '-output', 'logdog,host=luci-logdog-dev.appspot.com',
1002 '-prefix', 'android/swarming/logcats/${SWARMING_TASK_ID}',
1003 #'-service-account-json',
ghost stip (do not use) 2016/07/20 22:24:23 why the commented out code?
nicholaslin 2016/07/23 01:23:21 These credentials are for the production luci-logd
1004 #'/creds/service_accounts/service-account-luci-logdog-publisher.json'
1005 # ]
1006 # stream_command = [
1007 'stream', '-source', '${ISOLATED_OUTDIR}/logcats',
1008 ]
998 cmdline = [ 1009 cmdline = [
999 self.PathJoin('bin', 'run_%s' % target_name), 1010 self.PathJoin('bin', 'run_%s' % target_name),
1000 '--logcat-output-dir', '${ISOLATED_OUTDIR}/logcats', 1011 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats',
1001 '--target-devices-file', '${SWARMING_BOT_FILE}', 1012 '--target-devices-file', '${SWARMING_BOT_FILE}',
1002 '-v', 1013 '--logdog-command', ' '.join(logdog_command),
1014 # '--logdog-stream', ' '.join(stream_command),
1015 '-v'
1003 ] 1016 ]
1004 elif use_x11 and test_type == 'windowed_test_launcher': 1017 elif use_x11 and test_type == 'windowed_test_launcher':
1005 extra_files = [ 1018 extra_files = [
1006 'xdisplaycheck', 1019 'xdisplaycheck',
1007 '../../testing/test_env.py', 1020 '../../testing/test_env.py',
1008 '../../testing/xvfb.py', 1021 '../../testing/xvfb.py',
1009 ] 1022 ]
1010 cmdline = [ 1023 cmdline = [
1011 '../../testing/xvfb.py', 1024 '../../testing/xvfb.py',
1012 '.', 1025 '.',
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 # Then check to see if the arg contains any metacharacters other than 1499 # Then check to see if the arg contains any metacharacters other than
1487 # double quotes; if it does, quote everything (including the double 1500 # double quotes; if it does, quote everything (including the double
1488 # quotes) for safety. 1501 # quotes) for safety.
1489 if any(a in UNSAFE_FOR_CMD for a in arg): 1502 if any(a in UNSAFE_FOR_CMD for a in arg):
1490 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) 1503 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg)
1491 return arg 1504 return arg
1492 1505
1493 1506
1494 if __name__ == '__main__': 1507 if __name__ == '__main__':
1495 sys.exit(main(sys.argv[1:])) 1508 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698