| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 # Simulators are slow, therefore allow a longer timeout. | 750 # Simulators are slow, therefore allow a longer timeout. |
| 751 if arch in SLOW_ARCHS: | 751 if arch in SLOW_ARCHS: |
| 752 options.timeout *= 2 | 752 options.timeout *= 2 |
| 753 | 753 |
| 754 options.timeout *= MODES[mode]["timeout_scalefactor"] | 754 options.timeout *= MODES[mode]["timeout_scalefactor"] |
| 755 | 755 |
| 756 if options.predictable: | 756 if options.predictable: |
| 757 # Predictable mode is slower. | 757 # Predictable mode is slower. |
| 758 options.timeout *= 2 | 758 options.timeout *= 2 |
| 759 | 759 |
| 760 # TODO(machenbach): Remove temporary verbose output on windows after | |
| 761 # debugging driver-hung-up on XP. | |
| 762 verbose_output = ( | |
| 763 options.verbose or | |
| 764 utils.IsWindows() and options.progress == "verbose" | |
| 765 ) | |
| 766 ctx = context.Context(arch, MODES[mode]["execution_mode"], shell_dir, | 760 ctx = context.Context(arch, MODES[mode]["execution_mode"], shell_dir, |
| 767 mode_flags, verbose_output, | 761 mode_flags, options.verbose, |
| 768 options.timeout, | 762 options.timeout, |
| 769 options.isolates, | 763 options.isolates, |
| 770 options.command_prefix, | 764 options.command_prefix, |
| 771 options.extra_flags, | 765 options.extra_flags, |
| 772 options.no_i18n, | 766 options.no_i18n, |
| 773 options.random_seed, | 767 options.random_seed, |
| 774 options.no_sorting, | 768 options.no_sorting, |
| 775 options.rerun_failures_count, | 769 options.rerun_failures_count, |
| 776 options.rerun_failures_max, | 770 options.rerun_failures_max, |
| 777 options.predictable, | 771 options.predictable, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 if options.junitout: | 862 if options.junitout: |
| 869 progress_indicator.Register(progress.JUnitTestProgressIndicator( | 863 progress_indicator.Register(progress.JUnitTestProgressIndicator( |
| 870 options.junitout, options.junittestsuite)) | 864 options.junitout, options.junittestsuite)) |
| 871 if options.json_test_results: | 865 if options.json_test_results: |
| 872 progress_indicator.Register(progress.JsonTestProgressIndicator( | 866 progress_indicator.Register(progress.JsonTestProgressIndicator( |
| 873 options.json_test_results, arch, MODES[mode]["execution_mode"], | 867 options.json_test_results, arch, MODES[mode]["execution_mode"], |
| 874 ctx.random_seed)) | 868 ctx.random_seed)) |
| 875 | 869 |
| 876 run_networked = not options.no_network | 870 run_networked = not options.no_network |
| 877 if not run_networked: | 871 if not run_networked: |
| 878 if verbose_output: | 872 if options.verbose: |
| 879 print("Network distribution disabled, running tests locally.") | 873 print("Network distribution disabled, running tests locally.") |
| 880 elif utils.GuessOS() != "linux": | 874 elif utils.GuessOS() != "linux": |
| 881 print("Network distribution is only supported on Linux, sorry!") | 875 print("Network distribution is only supported on Linux, sorry!") |
| 882 run_networked = False | 876 run_networked = False |
| 883 peers = [] | 877 peers = [] |
| 884 if run_networked: | 878 if run_networked: |
| 885 peers = network_execution.GetPeers() | 879 peers = network_execution.GetPeers() |
| 886 if not peers: | 880 if not peers: |
| 887 print("No connection to distribution server; running tests locally.") | 881 print("No connection to distribution server; running tests locally.") |
| 888 run_networked = False | 882 run_networked = False |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 "--coverage-dir=%s" % options.sancov_dir]) | 917 "--coverage-dir=%s" % options.sancov_dir]) |
| 924 except: | 918 except: |
| 925 print >> sys.stderr, "Error: Merging sancov files failed." | 919 print >> sys.stderr, "Error: Merging sancov files failed." |
| 926 exit_code = 1 | 920 exit_code = 1 |
| 927 | 921 |
| 928 return exit_code | 922 return exit_code |
| 929 | 923 |
| 930 | 924 |
| 931 if __name__ == "__main__": | 925 if __name__ == "__main__": |
| 932 sys.exit(Main()) | 926 sys.exit(Main()) |
| OLD | NEW |