bisector: early exit when old_commit == new_commit. (#4458)

But do this after computing repo_url as that's still useful information.
This commit is contained in:
Oliver Chang 2020-09-18 14:10:10 +10:00 committed by GitHub
parent 862bfa9604
commit 34751cf016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ def _bisect(bisect_type, old_commit, new_commit, test_case_path, fuzz_target,
if not repo_url or not repo_path:
raise ValueError('Main git repo can not be determined.')
if old_commit == new_commit:
raise BisectError('old_commit is the same as new_commit', repo_url)
# Copy /src from the built Docker container to ensure all dependencies
# exist. This will be mounted when running them.
host_src_dir = build_specified_commit.copy_src_from_docker(