Skip to content

Commit bf3adea

Browse files
mi-acCommit Bot
authored andcommitted
[test] Add fallback to legacy output directory
The infrastructure will soon start using the canonical build output location out/build. New flake bisect jobs will then be started with --outdir=out/build. This change picks the current out/Release or out/Debug as an alternative output location to be compatible with the future value of the flag. This code will be removed when the property change happens. This prepares: https://crrev.com/c/2426643 Bug: chromium:1132088 Change-Id: I1fe3bcb239b05d069a1006646bc9306a16a3cecd Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2440336 Reviewed-by: Liviu Rau <[email protected]> Commit-Queue: Michael Achenbach <[email protected]> Cr-Commit-Position: refs/heads/master@{#70228}
1 parent 919d1dd commit bf3adea

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tools/testrunner/base_runner.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,20 @@ def outdirs():
474474
return
475475

476476
yield options.outdir
477+
478+
# TODO(machenbach): Temporary fallback to legacy outdir. The
479+
# infrastructure switches to the canonical out/build location. But
480+
# bisection will keep working with out/Release or out/Debug for a
481+
# grace period.
482+
if os.path.basename(options.outdir) == 'build':
483+
base_dir = os.path.dirname(options.outdir)
484+
release_dir = os.path.join(base_dir, 'Release')
485+
debug_dir = os.path.join(base_dir, 'Debug')
486+
if os.path.exists(release_dir) and not os.path.exists(debug_dir):
487+
yield release_dir
488+
if os.path.exists(debug_dir) and not os.path.exists(release_dir):
489+
yield debug_dir
490+
477491
if options.arch and options.mode:
478492
yield os.path.join(options.outdir,
479493
'%s.%s' % (options.arch, options.mode))

0 commit comments

Comments
 (0)