| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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()) |
| OLD | NEW |