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

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

Issue 457063002: Fix v8 landmines script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « build/landmines.py ('k') | 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 # predefined arch_and_mode since it is more expressive than arch and mode. 260 # predefined arch_and_mode since it is more expressive than arch and mode.
261 if not options.arch_and_mode: 261 if not options.arch_and_mode:
262 options.arch_and_mode = itertools.product(options.arch, options.mode) 262 options.arch_and_mode = itertools.product(options.arch, options.mode)
263 263
264 # Special processing of other options, sorted alphabetically. 264 # Special processing of other options, sorted alphabetically.
265 265
266 if options.buildbot: 266 if options.buildbot:
267 # Buildbots run presubmit tests as a separate step. 267 # Buildbots run presubmit tests as a separate step.
268 options.no_presubmit = True 268 options.no_presubmit = True
269 options.no_network = True 269 options.no_network = True
270
271 # FIXME(machenbach): Temporary hack to debug landmines on buildbot.
272 # Hardcoded for make/ninja.
273 src_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
274 target_dir = options.mode[0] if options.mode else 'Release'
275 out_dir = os.path.join(src_dir, 'out', target_dir, '.landmines')
276 if os.path.exists(out_dir):
277 print "[INFO] Landmines tracker exists."
278 if options.command_prefix: 270 if options.command_prefix:
279 print("Specifying --command-prefix disables network distribution, " 271 print("Specifying --command-prefix disables network distribution, "
280 "running tests locally.") 272 "running tests locally.")
281 options.no_network = True 273 options.no_network = True
282 options.command_prefix = shlex.split(options.command_prefix) 274 options.command_prefix = shlex.split(options.command_prefix)
283 options.extra_flags = shlex.split(options.extra_flags) 275 options.extra_flags = shlex.split(options.extra_flags)
284 276
285 if options.gc_stress: 277 if options.gc_stress:
286 options.extra_flags += GC_STRESS_FLAGS 278 options.extra_flags += GC_STRESS_FLAGS
287 279
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 exit_code = runner.Run(options.j) 541 exit_code = runner.Run(options.j)
550 overall_duration = time.time() - start_time 542 overall_duration = time.time() - start_time
551 543
552 if options.time: 544 if options.time:
553 verbose.PrintTestDurations(suites, overall_duration) 545 verbose.PrintTestDurations(suites, overall_duration)
554 return exit_code 546 return exit_code
555 547
556 548
557 if __name__ == "__main__": 549 if __name__ == "__main__":
558 sys.exit(Main()) 550 sys.exit(Main())
OLDNEW
« no previous file with comments | « build/landmines.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698