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

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

Issue 1411973003: [test] Fix bot_default config for noi18n. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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())
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