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

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

Issue 9702022: Fix passing of shard options in test wrapper. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 2011 the V8 project authors. All rights reserved. 3 # Copyright 2011 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 result += ['--isolates'] 190 result += ['--isolates']
191 if not options.store_unexpected_output: 191 if not options.store_unexpected_output:
192 result += ['--no-store-unexpected_output'] 192 result += ['--no-store-unexpected_output']
193 if options.stress_only: 193 if options.stress_only:
194 result += ['--stress-only'] 194 result += ['--stress-only']
195 if options.nostress: 195 if options.nostress:
196 result += ['--nostress'] 196 result += ['--nostress']
197 if options.crankshaft: 197 if options.crankshaft:
198 result += ['--crankshaft'] 198 result += ['--crankshaft']
199 if options.shard_count != 1: 199 if options.shard_count != 1:
200 result += ['--shard_count=%s' % options.shard_count] 200 result += ['--shard-count=%s' % options.shard_count]
201 if options.shard_run != 1: 201 if options.shard_run != 1:
202 result += ['--shard_run=%s' % options.shard_run] 202 result += ['--shard-run=%s' % options.shard_run]
203 if options.noprof: 203 if options.noprof:
204 result += ['--noprof'] 204 result += ['--noprof']
205 return result 205 return result
206 206
207 207
208 def Main(): 208 def Main():
209 parser = BuildOptions() 209 parser = BuildOptions()
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()
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 shell=True, 250 shell=True,
251 cwd=workspace, 251 cwd=workspace,
252 env=env) 252 env=env)
253 returncodes = child.wait() 253 returncodes = child.wait()
254 254
255 return returncodes 255 return returncodes
256 256
257 257
258 if __name__ == '__main__': 258 if __name__ == '__main__':
259 sys.exit(Main()) 259 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