Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 pathname = os.path.dirname(sys.argv[0]) | 145 pathname = os.path.dirname(sys.argv[0]) |
| 146 fullpath = os.path.abspath(pathname) | 146 fullpath = os.path.abspath(pathname) |
|
ricow1
2014/05/13 11:55:47
add a comment saying:
# We are in src/dart/tools/d
| |
| 147 srcpath = os.path.normpath(os.path.join(fullpath, '..')) | 147 srcpath = os.path.normpath(os.path.join(fullpath, '..', '..', '..')) |
| 148 | 148 |
| 149 test_mode = '' | 149 test_mode = '' |
| 150 timeout = 30000 | 150 timeout = 30000 |
| 151 if mode == 'Debug': | 151 if mode == 'Debug': |
| 152 test_mode = '--debug' | 152 test_mode = '--debug' |
| 153 timeout = 60000 | 153 timeout = 60000 |
| 154 | 154 |
| 155 show_results = '' | 155 show_results = '' |
| 156 if not options.show_results: | 156 if not options.show_results: |
| 157 show_results = '--no-show-results' | 157 show_results = '--no-show-results' |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 return 1 | 233 return 1 |
| 234 else: | 234 else: |
| 235 return 0 | 235 return 0 |
| 236 | 236 |
| 237 if __name__ == '__main__': | 237 if __name__ == '__main__': |
| 238 try: | 238 try: |
| 239 sys.exit(main()) | 239 sys.exit(main()) |
| 240 except StandardError as e: | 240 except StandardError as e: |
| 241 print 'Fail: ' + str(e) | 241 print 'Fail: ' + str(e) |
| 242 sys.exit(1) | 242 sys.exit(1) |
| OLD | NEW |