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

Side by Side Diff: tools/run-deopt-fuzzer.py

Issue 360113003: Let test runner rerun failures to test for flakes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 6 years, 5 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 | « no previous file | tools/run-tests.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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 timeout = 2 * TIMEOUT_DEFAULT; 362 timeout = 2 * TIMEOUT_DEFAULT;
363 else: 363 else:
364 timeout = TIMEOUT_DEFAULT; 364 timeout = TIMEOUT_DEFAULT;
365 365
366 timeout *= TIMEOUT_SCALEFACTOR[mode] 366 timeout *= TIMEOUT_SCALEFACTOR[mode]
367 ctx = context.Context(arch, mode, shell_dir, 367 ctx = context.Context(arch, mode, shell_dir,
368 mode_flags, options.verbose, 368 mode_flags, options.verbose,
369 timeout, options.isolates, 369 timeout, options.isolates,
370 options.command_prefix, 370 options.command_prefix,
371 options.extra_flags, 371 options.extra_flags,
372 False, 372 False, # Keep i18n on by default.
373 options.random_seed, 373 options.random_seed,
374 True) 374 True, # No sorting of test cases.
375 0, # Don't rerun failing tests.
376 0) # No use of a rerun-failing-tests maximum.
375 377
376 # Find available test suites and read test cases from them. 378 # Find available test suites and read test cases from them.
377 variables = { 379 variables = {
378 "arch": arch, 380 "arch": arch,
379 "asan": options.asan, 381 "asan": options.asan,
380 "deopt_fuzzer": True, 382 "deopt_fuzzer": True,
381 "gc_stress": False, 383 "gc_stress": False,
382 "isolates": options.isolates, 384 "isolates": options.isolates,
383 "mode": mode, 385 "mode": mode,
384 "no_i18n": False, 386 "no_i18n": False,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) 465 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests)
464 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() 466 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
465 runner = execution.Runner(suites, progress_indicator, ctx) 467 runner = execution.Runner(suites, progress_indicator, ctx)
466 468
467 code = runner.Run(options.j) 469 code = runner.Run(options.j)
468 return exit_code or code 470 return exit_code or code
469 471
470 472
471 if __name__ == "__main__": 473 if __name__ == "__main__":
472 sys.exit(Main()) 474 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698