Fix incorrect variable name in bisector.py (#3581)

This commit is contained in:
Oliver Chang 2020-04-06 11:28:46 +10:00 committed by GitHub
parent e587cc1868
commit 1992503e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -22,8 +22,8 @@ This is done with the following steps:
Typical usage example: Typical usage example:
python3 infra/bisector.py python3 infra/bisector.py
--commit_old 1e403e9259a1abedf108ab86f711ba52c907226d --old_commit 1e403e9259a1abedf108ab86f711ba52c907226d
--commit_new f79be4f2330f4b89ea2f42e1c44ca998c59a0c0f --new_commit f79be4f2330f4b89ea2f42e1c44ca998c59a0c0f
--fuzz_target rules_fuzzer --fuzz_target rules_fuzzer
--project_name yara --project_name yara
--testcase infra/yara_testcase --testcase infra/yara_testcase
@ -78,10 +78,10 @@ def main():
error_sha = bisect(args.old_commit, args.new_commit, args.test_case_path, error_sha = bisect(args.old_commit, args.new_commit, args.test_case_path,
args.fuzz_target, build_data) args.fuzz_target, build_data)
if not error_sha: if not error_sha:
logging.error('No error was found in commit range %s:%s', args.commit_old, logging.error('No error was found in commit range %s:%s', args.old_commit,
args.commit_new) args.new_commit)
return 1 return 1
if error_sha == args.commit_old: if error_sha == args.old_commit:
logging.error( logging.error(
'Bisection Error: Both the first and the last commits in' 'Bisection Error: Both the first and the last commits in'
'the given range have the same behavior, bisection is not possible. ') 'the given range have the same behavior, bisection is not possible. ')