Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: tools/run-tests.py

Issue 1279613005: Remove spammy "Network distribution disabled" message from default config (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698