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

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

Issue 1469833002: [test-runner] Move test case processing beyond the multi-process boundary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review Created 5 years 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 | « tools/run-deopt-fuzzer.py ('k') | tools/testrunner/local/execution.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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 args_suites = OrderedDict() # Used as set 596 args_suites = OrderedDict() # Used as set
597 for arg in args: 597 for arg in args:
598 args_suites[arg.split('/')[0]] = True 598 args_suites[arg.split('/')[0]] = True
599 suite_paths = [ s for s in args_suites if s in suite_paths ] 599 suite_paths = [ s for s in args_suites if s in suite_paths ]
600 600
601 suites = [] 601 suites = []
602 for root in suite_paths: 602 for root in suite_paths:
603 suite = testsuite.TestSuite.LoadTestSuite( 603 suite = testsuite.TestSuite.LoadTestSuite(
604 os.path.join(BASE_DIR, "test", root)) 604 os.path.join(BASE_DIR, "test", root))
605 if suite: 605 if suite:
606 suite.SetupWorkingDirectory()
606 suites.append(suite) 607 suites.append(suite)
607 608
608 if options.download_data or options.download_data_only: 609 if options.download_data or options.download_data_only:
609 for s in suites: 610 for s in suites:
610 s.DownloadData() 611 s.DownloadData()
611 612
612 if options.download_data_only: 613 if options.download_data_only:
613 return exit_code 614 return exit_code
614 615
615 for (arch, mode) in options.arch_and_mode: 616 for (arch, mode) in options.arch_and_mode:
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 if exit_code == 1 and options.json_test_results: 799 if exit_code == 1 and options.json_test_results:
799 print("Force exit code 0 after failures. Json test results file generated " 800 print("Force exit code 0 after failures. Json test results file generated "
800 "with failure information.") 801 "with failure information.")
801 exit_code = 0 802 exit_code = 0
802 803
803 return exit_code 804 return exit_code
804 805
805 806
806 if __name__ == "__main__": 807 if __name__ == "__main__":
807 sys.exit(Main()) 808 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698