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

Side by Side Diff: dart/frog/scripts/bootstrap/frog_wrapper.py

Issue 9111012: Detect crashes in frog/leg (when running on VM). (Closed) Base URL: ssh://aaricia.aar/home/ahe/Dart/all/dart.googlecode.com.git@master
Patch Set: Fix mistake in status file Created 8 years, 11 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 | « dart/frog/minfrogc.dart ('k') | dart/frog/tests/leg_only/leg_only.status » ('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 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import imp 6 import imp
7 import os 7 import os
8 import sys 8 import sys
9 9
10 def main(args): 10 def main(args):
11 # Try to find frog.py from the current location. 11 # Try to find frog.py from the current location.
12 home = os.path.join(os.curdir, 'frog.py') 12 home = os.path.join(os.curdir, 'frog.py')
13 if not os.path.exists(home): 13 if not os.path.exists(home):
14 home = os.path.join(os.curdir, 'frog', 'frog.py') 14 home = os.path.join(os.curdir, 'frog', 'frog.py')
15 15
16 if not os.path.exists(home): 16 if not os.path.exists(home):
17 print "Could not find frog" 17 print "Could not find frog"
18 return 1 18 return 1
19 19
20 frog_args = ['frog.py', '--vm=' + VM, '--'] 20 frog_args = [
21 'frog.py',
22 '--vm=' + VM,
23 '--vm_flags=--enable_asserts --enable_type_checks',
24 '--']
21 frog_args += args[1:] 25 frog_args += args[1:]
22 26
23 filename = None 27 filename = None
24 exit_code = 1 28 exit_code = 1
25 try: 29 try:
26 # Load frog.py and invoke it. 30 # Load frog.py and invoke it.
27 paths = [os.path.dirname(home)] 31 paths = [os.path.dirname(home)]
28 (filename, pathname, description) = imp.find_module('frog', paths) 32 (filename, pathname, description) = imp.find_module('frog', paths)
29 module = imp.load_module('frog', filename, pathname, description) 33 module = imp.load_module('frog', filename, pathname, description)
30 exit_code = module.main(frog_args) 34 exit_code = module.main(frog_args)
31 finally: 35 finally:
32 if filename: 36 if filename:
33 filename.close() 37 filename.close()
34 38
35 return exit_code 39 return exit_code
OLDNEW
« no previous file with comments | « dart/frog/minfrogc.dart ('k') | dart/frog/tests/leg_only/leg_only.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698