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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 print "Unknown %s mode %s" % (name, option) | 472 print "Unknown %s mode %s" % (name, option) |
473 return False | 473 return False |
474 return True | 474 return True |
475 if not CheckTestMode("flaky test", options.flaky_tests): | 475 if not CheckTestMode("flaky test", options.flaky_tests): |
476 return False | 476 return False |
477 if not CheckTestMode("slow test", options.slow_tests): | 477 if not CheckTestMode("slow test", options.slow_tests): |
478 return False | 478 return False |
479 if not CheckTestMode("pass|fail test", options.pass_fail_tests): | 479 if not CheckTestMode("pass|fail test", options.pass_fail_tests): |
480 return False | 480 return False |
481 if options.no_i18n: | 481 if options.no_i18n: |
| 482 TEST_MAP["bot_default"].remove("intl") |
482 TEST_MAP["default"].remove("intl") | 483 TEST_MAP["default"].remove("intl") |
483 return True | 484 return True |
484 | 485 |
485 | 486 |
486 def ShardTests(tests, options): | 487 def ShardTests(tests, options): |
487 # Read gtest shard configuration from environment (e.g. set by swarming). | 488 # Read gtest shard configuration from environment (e.g. set by swarming). |
488 # If none is present, use values passed on the command line. | 489 # If none is present, use values passed on the command line. |
489 shard_count = int(os.environ.get('GTEST_TOTAL_SHARDS', options.shard_count)) | 490 shard_count = int(os.environ.get('GTEST_TOTAL_SHARDS', options.shard_count)) |
490 shard_run = os.environ.get('GTEST_SHARD_INDEX') | 491 shard_run = os.environ.get('GTEST_SHARD_INDEX') |
491 if shard_run is not None: | 492 if shard_run is not None: |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 verbose.PrintTestDurations(suites, overall_duration) | 751 verbose.PrintTestDurations(suites, overall_duration) |
751 | 752 |
752 if num_tests == 0: | 753 if num_tests == 0: |
753 print("Warning: no tests were run!") | 754 print("Warning: no tests were run!") |
754 | 755 |
755 return exit_code | 756 return exit_code |
756 | 757 |
757 | 758 |
758 if __name__ == "__main__": | 759 if __name__ == "__main__": |
759 sys.exit(Main()) | 760 sys.exit(Main()) |
OLD | NEW |