OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
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 """Creates a script to run an android test using build/android/test_runner.py. | 7 """Creates a script to run an android test using build/android/test_runner.py. |
8 """ | 8 """ |
9 | 9 |
10 import argparse | 10 import argparse |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 with open(args.script_output_path, 'w') as script: | 117 with open(args.script_output_path, 'w') as script: |
118 script.write(SCRIPT_TEMPLATE.format( | 118 script.write(SCRIPT_TEMPLATE.format( |
119 test_runner_path=str(test_runner_path), | 119 test_runner_path=str(test_runner_path), |
120 test_runner_args=str(test_runner_args), | 120 test_runner_args=str(test_runner_args), |
121 test_runner_path_args=str(test_runner_path_args))) | 121 test_runner_path_args=str(test_runner_path_args))) |
122 | 122 |
123 os.chmod(args.script_output_path, 0750) | 123 os.chmod(args.script_output_path, 0750) |
124 | 124 |
125 if args.depfile: | 125 if args.depfile: |
126 build_utils.WriteDepfile( | 126 build_utils.WriteDepfile(args.depfile, args.script_output_path) |
127 args.depfile, | |
128 build_utils.GetPythonDependencies()) | |
129 | 127 |
130 if __name__ == '__main__': | 128 if __name__ == '__main__': |
131 sys.exit(main(sys.argv[1:])) | 129 sys.exit(main(sys.argv[1:])) |
OLD | NEW |