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

Side by Side Diff: tools/test-wrapper-gypbuild.py

Issue 10716004: Allow using test-wrapper-gypbuild.py on Windows when no python interpreter is registered. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« 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 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 (options, args) = parser.parse_args() 210 (options, args) = parser.parse_args()
211 if not ProcessOptions(options): 211 if not ProcessOptions(options):
212 parser.print_help() 212 parser.print_help()
213 return 1 213 return 1
214 214
215 workspace = abspath(join(dirname(sys.argv[0]), '..')) 215 workspace = abspath(join(dirname(sys.argv[0]), '..'))
216 returncodes = 0 216 returncodes = 0
217 217
218 if not options.no_presubmit: 218 if not options.no_presubmit:
219 print ">>> running presubmit tests" 219 print ">>> running presubmit tests"
220 returncodes += subprocess.call([workspace + '/tools/presubmit.py']) 220 returncodes += subprocess.call([sys.executable,
221 workspace + '/tools/presubmit.py'])
221 222
222 args_for_children = ['python'] 223 args_for_children = ['python']
223 args_for_children += [workspace + '/tools/test.py'] + PassOnOptions(options) 224 args_for_children += [workspace + '/tools/test.py'] + PassOnOptions(options)
224 args_for_children += ['--no-build', '--build-system=gyp'] 225 args_for_children += ['--no-build', '--build-system=gyp']
225 for arg in args: 226 for arg in args:
226 args_for_children += [arg] 227 args_for_children += [arg]
227 env = os.environ 228 env = os.environ
228 229
229 for mode in options.mode: 230 for mode in options.mode:
230 for arch in options.arch: 231 for arch in options.arch:
(...skipping 25 matching lines...) Expand all
256 shell=True, 257 shell=True,
257 cwd=workspace, 258 cwd=workspace,
258 env=env) 259 env=env)
259 returncodes = child.wait() 260 returncodes = child.wait()
260 261
261 return returncodes 262 return returncodes
262 263
263 264
264 if __name__ == '__main__': 265 if __name__ == '__main__':
265 sys.exit(Main()) 266 sys.exit(Main())
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