[wycheproof] Fix typo (#8935)

This commit is contained in:
jonathanmetzman 2022-11-07 09:16:31 -05:00 committed by GitHub
parent 05b0539525
commit b975afe5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -22,12 +22,13 @@ import subprocess
def main():
"""Runs whycheproof."""
if len(sys.argv) < 3:
logging.error('Usage: %s <test_app> <testcase>.', sys.argv[0])
return 1
test_app = sys.argv[1]
return subprocess.run([test_app], check=False).return_code
return subprocess.run([test_app], check=False).returncode
if __name__ == '__main__':

View File

@ -22,6 +22,7 @@ import sys
def get_args():
"""Returns parsed program arguments."""
parser = argparse.ArgumentParser()
parser.add_argument(
'--input_dir',
@ -35,6 +36,7 @@ def get_args():
def main():
"""Generates a dummy testcase for use by a ClusterFuzz blackbox fuzzer."""
args = get_args()
if not os.path.exists(args.output_dir):
os.mkdir(args.output_dir)