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

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

Issue 1972373002: Add -v to swarmed android tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 executable = gn_isolate_map[target_name].get('executable', target_name) 984 executable = gn_isolate_map[target_name].get('executable', target_name)
985 executable_suffix = '.exe' if self.platform == 'win32' else '' 985 executable_suffix = '.exe' if self.platform == 'win32' else ''
986 986
987 cmdline = [] 987 cmdline = []
988 extra_files = [] 988 extra_files = []
989 989
990 if android and test_type != "script": 990 if android and test_type != "script":
991 cmdline = [ 991 cmdline = [
992 self.PathJoin('bin', 'run_%s' % target_name), 992 self.PathJoin('bin', 'run_%s' % target_name),
993 '--logcat-output-dir', '${ISOLATED_OUTDIR}/logcats' 993 '--logcat-output-dir', '${ISOLATED_OUTDIR}/logcats',
994 '-v',
994 ] 995 ]
995 elif use_x11 and test_type == 'windowed_test_launcher': 996 elif use_x11 and test_type == 'windowed_test_launcher':
996 extra_files = [ 997 extra_files = [
997 'xdisplaycheck', 998 'xdisplaycheck',
998 '../../testing/test_env.py', 999 '../../testing/test_env.py',
999 '../../testing/xvfb.py', 1000 '../../testing/xvfb.py',
1000 ] 1001 ]
1001 cmdline = [ 1002 cmdline = [
1002 '../../testing/xvfb.py', 1003 '../../testing/xvfb.py',
1003 '.', 1004 '.',
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 # Then check to see if the arg contains any metacharacters other than 1466 # Then check to see if the arg contains any metacharacters other than
1466 # double quotes; if it does, quote everything (including the double 1467 # double quotes; if it does, quote everything (including the double
1467 # quotes) for safety. 1468 # quotes) for safety.
1468 if any(a in UNSAFE_FOR_CMD for a in arg): 1469 if any(a in UNSAFE_FOR_CMD for a in arg):
1469 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) 1470 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg)
1470 return arg 1471 return arg
1471 1472
1472 1473
1473 if __name__ == '__main__': 1474 if __name__ == '__main__':
1474 sys.exit(main(sys.argv[1:])) 1475 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698