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

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

Issue 1913013003: [test] Print how test runner is called on swarming. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 # Use the v8 root as cwd as some test cases use "load" with relative paths. 590 # Use the v8 root as cwd as some test cases use "load" with relative paths.
591 os.chdir(BASE_DIR) 591 os.chdir(BASE_DIR)
592 592
593 parser = BuildOptions() 593 parser = BuildOptions()
594 (options, args) = parser.parse_args() 594 (options, args) = parser.parse_args()
595 if not ProcessOptions(options): 595 if not ProcessOptions(options):
596 parser.print_help() 596 parser.print_help()
597 return 1 597 return 1
598 SetupEnvironment(options) 598 SetupEnvironment(options)
599 599
600 if options.swarming:
601 # Swarming doesn't print how isolated commands are called. Lets make this
602 # less cryptic by printing it ourselves.
603 print ' '.join(sys.argv)
604
600 exit_code = 0 605 exit_code = 0
601 if not options.no_presubmit: 606 if not options.no_presubmit:
602 print ">>> running presubmit tests" 607 print ">>> running presubmit tests"
603 exit_code = subprocess.call( 608 exit_code = subprocess.call(
604 [sys.executable, join(BASE_DIR, "tools", "presubmit.py")]) 609 [sys.executable, join(BASE_DIR, "tools", "presubmit.py")])
605 610
606 suite_paths = utils.GetSuitePaths(join(BASE_DIR, "test")) 611 suite_paths = utils.GetSuitePaths(join(BASE_DIR, "test"))
607 612
608 # Use default tests if no test configuration was provided at the cmd line. 613 # Use default tests if no test configuration was provided at the cmd line.
609 if len(args) == 0: 614 if len(args) == 0:
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 "--coverage-dir=%s" % options.sancov_dir]) 842 "--coverage-dir=%s" % options.sancov_dir])
838 except: 843 except:
839 print >> sys.stderr, "Error: Merging sancov files failed." 844 print >> sys.stderr, "Error: Merging sancov files failed."
840 exit_code = 1 845 exit_code = 1
841 846
842 return exit_code 847 return exit_code
843 848
844 849
845 if __name__ == "__main__": 850 if __name__ == "__main__":
846 sys.exit(Main()) 851 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