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

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

Issue 10483005: Remove temporary debug print from test wrapper. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 shellpath = workspace + '/' + options.outdir + '/' + mode 238 shellpath = workspace + '/' + options.outdir + '/' + mode
239 mode = mode.lower() 239 mode = mode.lower()
240 else: 240 else:
241 shellpath = workspace + '/' + options.outdir + '/' + arch + '.' + mode 241 shellpath = workspace + '/' + options.outdir + '/' + arch + '.' + mode
242 env['LD_LIBRARY_PATH'] = shellpath + '/lib.target' 242 env['LD_LIBRARY_PATH'] = shellpath + '/lib.target'
243 shell = shellpath + "/d8" 243 shell = shellpath + "/d8"
244 cmdline = ' '.join(args_for_children + 244 cmdline = ' '.join(args_for_children +
245 ['--arch=' + arch] + 245 ['--arch=' + arch] +
246 ['--mode=' + mode] + 246 ['--mode=' + mode] +
247 ['--shell=' + shell]) 247 ['--shell=' + shell])
248 # TODO(jkummerow): This print is temporary.
249 print "Executing: %s" % cmdline
250
251 child = subprocess.Popen(cmdline, 248 child = subprocess.Popen(cmdline,
252 shell=True, 249 shell=True,
253 cwd=workspace, 250 cwd=workspace,
254 env=env) 251 env=env)
255 returncodes += child.wait() 252 returncodes += child.wait()
256 253
257 if len(options.mode) == 0 and len(options.arch) == 0: 254 if len(options.mode) == 0 and len(options.arch) == 0:
258 print ">>> running tests" 255 print ">>> running tests"
259 shellpath = workspace + '/' + options.outdir 256 shellpath = workspace + '/' + options.outdir
260 env['LD_LIBRARY_PATH'] = shellpath + '/lib.target' 257 env['LD_LIBRARY_PATH'] = shellpath + '/lib.target'
261 shell = shellpath + '/d8' 258 shell = shellpath + '/d8'
262 child = subprocess.Popen(' '.join(args_for_children + 259 child = subprocess.Popen(' '.join(args_for_children +
263 ['--shell=' + shell]), 260 ['--shell=' + shell]),
264 shell=True, 261 shell=True,
265 cwd=workspace, 262 cwd=workspace,
266 env=env) 263 env=env)
267 returncodes = child.wait() 264 returncodes = child.wait()
268 265
269 return returncodes 266 return returncodes
270 267
271 268
272 if __name__ == '__main__': 269 if __name__ == '__main__':
273 sys.exit(Main()) 270 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