OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 the V8 project authors. All rights reserved. | 2 # Copyright 2016 the V8 project authors. All rights reserved. |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """MB - the Meta-Build wrapper around GYP and GN | 7 """MB - the Meta-Build wrapper around GYP and GN |
8 | 8 |
9 MB is a wrapper script for GYP and GN that can be used to generate build files | 9 MB is a wrapper script for GYP and GN that can be used to generate build files |
10 for sets of canned configurations and analyze them. | 10 for sets of canned configurations and analyze them. |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 test_cmdline = [ | 1007 test_cmdline = [ |
1008 self.PathJoin('bin', 'run_%s' % target_name), | 1008 self.PathJoin('bin', 'run_%s' % target_name), |
1009 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', | 1009 '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', |
1010 '--target-devices-file', '${SWARMING_BOT_FILE}', | 1010 '--target-devices-file', '${SWARMING_BOT_FILE}', |
1011 '-v' | 1011 '-v' |
1012 ] | 1012 ] |
1013 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] | 1013 cmdline = (['./../../build/android/test_wrapper/logdog_wrapper.py'] |
1014 + logdog_command + test_cmdline) | 1014 + logdog_command + test_cmdline) |
1015 elif use_x11 and test_type == 'windowed_test_launcher': | 1015 elif use_x11 and test_type == 'windowed_test_launcher': |
1016 extra_files = [ | 1016 extra_files = [ |
1017 'xdisplaycheck', | |
1018 '../../testing/test_env.py', | 1017 '../../testing/test_env.py', |
1019 '../../testing/xvfb.py', | 1018 '../../testing/xvfb.py', |
1020 ] | 1019 ] |
1021 cmdline = [ | 1020 cmdline = [ |
1022 '../../testing/xvfb.py', | 1021 '../../testing/xvfb.py', |
1023 '.', | 1022 '.', |
1024 './' + str(executable) + executable_suffix, | 1023 './' + str(executable) + executable_suffix, |
1025 '--brave-new-test-launcher', | 1024 '--brave-new-test-launcher', |
1026 '--test-launcher-bot-mode', | 1025 '--test-launcher-bot-mode', |
1027 '--asan=%d' % asan, | 1026 '--asan=%d' % asan, |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 # Then check to see if the arg contains any metacharacters other than | 1496 # Then check to see if the arg contains any metacharacters other than |
1498 # double quotes; if it does, quote everything (including the double | 1497 # double quotes; if it does, quote everything (including the double |
1499 # quotes) for safety. | 1498 # quotes) for safety. |
1500 if any(a in UNSAFE_FOR_CMD for a in arg): | 1499 if any(a in UNSAFE_FOR_CMD for a in arg): |
1501 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1500 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1502 return arg | 1501 return arg |
1503 | 1502 |
1504 | 1503 |
1505 if __name__ == '__main__': | 1504 if __name__ == '__main__': |
1506 sys.exit(main(sys.argv[1:])) | 1505 sys.exit(main(sys.argv[1:])) |
OLD | NEW |