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

Side by Side Diff: build/android/gyp/create_test_runner_script.py

Issue 2336173003: Fix android depfiles to always list GN's outputs[0] (Closed)
Patch Set: fix cronet_package Created 4 years, 3 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 | « build/android/gyp/create_java_binary_script.py ('k') | build/android/gyp/emma_instr.py » ('j') | 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 # 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
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:]))
OLDNEW
« no previous file with comments | « build/android/gyp/create_java_binary_script.py ('k') | build/android/gyp/emma_instr.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698