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

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

Issue 1153103008: [test] Remove default for zero test cases. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 years, 6 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 | tools/testrunner/local/progress.py » ('j') | 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 for t in s.tests: 577 for t in s.tests:
578 t.id = test_id 578 t.id = test_id
579 test_id += 1 579 test_id += 1
580 580
581 if options.cat: 581 if options.cat:
582 return 0 # We're done here. 582 return 0 # We're done here.
583 583
584 if options.report: 584 if options.report:
585 verbose.PrintReport(all_tests) 585 verbose.PrintReport(all_tests)
586 586
587 if num_tests == 0:
588 print "No tests to run."
589 return 0
590
591 # Run the tests, either locally or distributed on the network. 587 # Run the tests, either locally or distributed on the network.
592 start_time = time.time() 588 start_time = time.time()
593 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() 589 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
594 if options.junitout: 590 if options.junitout:
595 progress_indicator = progress.JUnitTestProgressIndicator( 591 progress_indicator = progress.JUnitTestProgressIndicator(
596 progress_indicator, options.junitout, options.junittestsuite) 592 progress_indicator, options.junitout, options.junittestsuite)
597 if options.json_test_results: 593 if options.json_test_results:
598 progress_indicator = progress.JsonTestProgressIndicator( 594 progress_indicator = progress.JsonTestProgressIndicator(
599 progress_indicator, options.json_test_results, arch, 595 progress_indicator, options.json_test_results, arch,
600 MODES[mode]["execution_mode"]) 596 MODES[mode]["execution_mode"])
(...skipping 26 matching lines...) Expand all
627 exit_code = runner.Run(options.j) 623 exit_code = runner.Run(options.j)
628 overall_duration = time.time() - start_time 624 overall_duration = time.time() - start_time
629 625
630 if options.time: 626 if options.time:
631 verbose.PrintTestDurations(suites, overall_duration) 627 verbose.PrintTestDurations(suites, overall_duration)
632 return exit_code 628 return exit_code
633 629
634 630
635 if __name__ == "__main__": 631 if __name__ == "__main__":
636 sys.exit(Main()) 632 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/testrunner/local/progress.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698