| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 timeout = 2 * TIMEOUT_DEFAULT; | 533 timeout = 2 * TIMEOUT_DEFAULT; |
| 534 else: | 534 else: |
| 535 timeout = TIMEOUT_DEFAULT; | 535 timeout = TIMEOUT_DEFAULT; |
| 536 | 536 |
| 537 timeout *= MODES[mode]["timeout_scalefactor"] | 537 timeout *= MODES[mode]["timeout_scalefactor"] |
| 538 | 538 |
| 539 if options.predictable: | 539 if options.predictable: |
| 540 # Predictable mode is slower. | 540 # Predictable mode is slower. |
| 541 timeout *= 2 | 541 timeout *= 2 |
| 542 | 542 |
| 543 # TODO(machenbach): Remove temporary verbose output on windows after |
| 544 # debugging driver-hung-up on XP. |
| 545 verbose_output = ( |
| 546 options.verbose or |
| 547 utils.IsWindows() and options.progress == "verbose" |
| 548 ) |
| 543 ctx = context.Context(arch, MODES[mode]["execution_mode"], shell_dir, | 549 ctx = context.Context(arch, MODES[mode]["execution_mode"], shell_dir, |
| 544 mode_flags, options.verbose, | 550 mode_flags, verbose_output, |
| 545 timeout, options.isolates, | 551 timeout, options.isolates, |
| 546 options.command_prefix, | 552 options.command_prefix, |
| 547 options.extra_flags, | 553 options.extra_flags, |
| 548 options.no_i18n, | 554 options.no_i18n, |
| 549 options.random_seed, | 555 options.random_seed, |
| 550 options.no_sorting, | 556 options.no_sorting, |
| 551 options.rerun_failures_count, | 557 options.rerun_failures_count, |
| 552 options.rerun_failures_max, | 558 options.rerun_failures_max, |
| 553 options.predictable, | 559 options.predictable, |
| 554 options.no_harness) | 560 options.no_harness) |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 exit_code = runner.Run(options.j) | 655 exit_code = runner.Run(options.j) |
| 650 overall_duration = time.time() - start_time | 656 overall_duration = time.time() - start_time |
| 651 | 657 |
| 652 if options.time: | 658 if options.time: |
| 653 verbose.PrintTestDurations(suites, overall_duration) | 659 verbose.PrintTestDurations(suites, overall_duration) |
| 654 return exit_code | 660 return exit_code |
| 655 | 661 |
| 656 | 662 |
| 657 if __name__ == "__main__": | 663 if __name__ == "__main__": |
| 658 sys.exit(Main()) | 664 sys.exit(Main()) |
| OLD | NEW |