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

Side by Side Diff: tools/dartium/test.py

Issue 276563005: Fix tools/dartium/test.py path computation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 6 years, 7 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 Google Inc. All Rights Reserved. 3 # Copyright 2011 Google Inc. All Rights Reserved.
4 4
5 import fnmatch 5 import fnmatch
6 import optparse 6 import optparse
7 import os 7 import os
8 import re 8 import re
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 else: 135 else:
136 suites = [ options.suite ] 136 suites = [ options.suite ]
137 137
138 # If --checked or --unchecked not present, run with both. 138 # If --checked or --unchecked not present, run with both.
139 checkmodes = ['unchecked', 'checked'] 139 checkmodes = ['unchecked', 'checked']
140 if options.checked or options.unchecked: 140 if options.checked or options.unchecked:
141 checkmodes = [] 141 checkmodes = []
142 if options.unchecked: checkmodes.append('unchecked') 142 if options.unchecked: checkmodes.append('unchecked')
143 if options.checked: checkmodes.append('checked') 143 if options.checked: checkmodes.append('checked')
144 144
145 # We are in src/dart/tools/dartium/test.py.
145 pathname = os.path.dirname(sys.argv[0]) 146 pathname = os.path.dirname(sys.argv[0])
146 fullpath = os.path.abspath(pathname) 147 fullpath = os.path.abspath(pathname)
147 srcpath = os.path.normpath(os.path.join(fullpath, '..')) 148 srcpath = os.path.normpath(os.path.join(fullpath, '..', '..', '..'))
148 149
149 test_mode = '' 150 test_mode = ''
150 timeout = 30000 151 timeout = 30000
151 if mode == 'Debug': 152 if mode == 'Debug':
152 test_mode = '--debug' 153 test_mode = '--debug'
153 timeout = 60000 154 timeout = 60000
154 155
155 show_results = '' 156 show_results = ''
156 if not options.show_results: 157 if not options.show_results:
157 show_results = '--no-show-results' 158 show_results = '--no-show-results'
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return 1 234 return 1
234 else: 235 else:
235 return 0 236 return 0
236 237
237 if __name__ == '__main__': 238 if __name__ == '__main__':
238 try: 239 try:
239 sys.exit(main()) 240 sys.exit(main())
240 except StandardError as e: 241 except StandardError as e:
241 print 'Fail: ' + str(e) 242 print 'Fail: ' + str(e)
242 sys.exit(1) 243 sys.exit(1)
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