| 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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 if options.junitout: | 661 if options.junitout: |
| 662 progress_indicator.Register(progress.JUnitTestProgressIndicator( | 662 progress_indicator.Register(progress.JUnitTestProgressIndicator( |
| 663 options.junitout, options.junittestsuite)) | 663 options.junitout, options.junittestsuite)) |
| 664 if options.json_test_results: | 664 if options.json_test_results: |
| 665 progress_indicator.Register(progress.JsonTestProgressIndicator( | 665 progress_indicator.Register(progress.JsonTestProgressIndicator( |
| 666 options.json_test_results, arch, MODES[mode]["execution_mode"], | 666 options.json_test_results, arch, MODES[mode]["execution_mode"], |
| 667 ctx.random_seed)) | 667 ctx.random_seed)) |
| 668 | 668 |
| 669 run_networked = not options.no_network | 669 run_networked = not options.no_network |
| 670 if not run_networked: | 670 if not run_networked: |
| 671 print("Network distribution disabled, running tests locally.") | 671 if verbose_output: |
| 672 print("Network distribution disabled, running tests locally.") |
| 672 elif utils.GuessOS() != "linux": | 673 elif utils.GuessOS() != "linux": |
| 673 print("Network distribution is only supported on Linux, sorry!") | 674 print("Network distribution is only supported on Linux, sorry!") |
| 674 run_networked = False | 675 run_networked = False |
| 675 peers = [] | 676 peers = [] |
| 676 if run_networked: | 677 if run_networked: |
| 677 peers = network_execution.GetPeers() | 678 peers = network_execution.GetPeers() |
| 678 if not peers: | 679 if not peers: |
| 679 print("No connection to distribution server; running tests locally.") | 680 print("No connection to distribution server; running tests locally.") |
| 680 run_networked = False | 681 run_networked = False |
| 681 elif len(peers) == 1: | 682 elif len(peers) == 1: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 694 exit_code = runner.Run(options.j) | 695 exit_code = runner.Run(options.j) |
| 695 overall_duration = time.time() - start_time | 696 overall_duration = time.time() - start_time |
| 696 | 697 |
| 697 if options.time: | 698 if options.time: |
| 698 verbose.PrintTestDurations(suites, overall_duration) | 699 verbose.PrintTestDurations(suites, overall_duration) |
| 699 return exit_code | 700 return exit_code |
| 700 | 701 |
| 701 | 702 |
| 702 if __name__ == "__main__": | 703 if __name__ == "__main__": |
| 703 sys.exit(Main()) | 704 sys.exit(Main()) |
| OLD | NEW |