| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |