| OLD | NEW |
| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 shell_dir = os.path.join(workspace, options.outdir, | 292 shell_dir = os.path.join(workspace, options.outdir, |
| 293 "%s.%s" % (arch, mode)) | 293 "%s.%s" % (arch, mode)) |
| 294 shell_dir = os.path.relpath(shell_dir) | 294 shell_dir = os.path.relpath(shell_dir) |
| 295 | 295 |
| 296 # Populate context object. | 296 # Populate context object. |
| 297 mode_flags = MODE_FLAGS[mode] | 297 mode_flags = MODE_FLAGS[mode] |
| 298 timeout = options.timeout | 298 timeout = options.timeout |
| 299 if timeout == -1: | 299 if timeout == -1: |
| 300 # Simulators are slow, therefore allow a longer default timeout. | 300 # Simulators are slow, therefore allow a longer default timeout. |
| 301 if arch in SLOW_ARCHS: | 301 if arch in SLOW_ARCHS: |
| 302 timeout = 3 * TIMEOUT_DEFAULT; | 302 timeout = 2 * TIMEOUT_DEFAULT; |
| 303 else: | 303 else: |
| 304 timeout = TIMEOUT_DEFAULT; | 304 timeout = TIMEOUT_DEFAULT; |
| 305 | 305 |
| 306 timeout *= TIMEOUT_SCALEFACTOR[mode] | 306 timeout *= TIMEOUT_SCALEFACTOR[mode] |
| 307 ctx = context.Context(arch, mode, shell_dir, | 307 ctx = context.Context(arch, mode, shell_dir, |
| 308 mode_flags, options.verbose, | 308 mode_flags, options.verbose, |
| 309 timeout, options.isolates, | 309 timeout, options.isolates, |
| 310 options.command_prefix, | 310 options.command_prefix, |
| 311 options.extra_flags) | 311 options.extra_flags) |
| 312 | 312 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 except KeyboardInterrupt: | 392 except KeyboardInterrupt: |
| 393 return 1 | 393 return 1 |
| 394 | 394 |
| 395 if options.time: | 395 if options.time: |
| 396 verbose.PrintTestDurations(suites, overall_duration) | 396 verbose.PrintTestDurations(suites, overall_duration) |
| 397 return exit_code | 397 return exit_code |
| 398 | 398 |
| 399 | 399 |
| 400 if __name__ == "__main__": | 400 if __name__ == "__main__": |
| 401 sys.exit(Main()) | 401 sys.exit(Main()) |
| OLD | NEW |