mirror of https://github.com/google/oss-fuzz.git
[wycheproof] Fix typo (#8935)
This commit is contained in:
parent
05b0539525
commit
b975afe5e3
|
@ -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__':
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue