From b975afe5e394d63ab81c19d20a3df74d5df37442 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Mon, 7 Nov 2022 09:16:31 -0500 Subject: [PATCH] [wycheproof] Fix typo (#8935) --- infra/tools/wycheproof/launcher.py | 3 ++- infra/tools/wycheproof/run.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/infra/tools/wycheproof/launcher.py b/infra/tools/wycheproof/launcher.py index a5f22235a..2b73c3ef3 100644 --- a/infra/tools/wycheproof/launcher.py +++ b/infra/tools/wycheproof/launcher.py @@ -22,12 +22,13 @@ import subprocess def main(): + """Runs whycheproof.""" if len(sys.argv) < 3: logging.error('Usage: %s .', 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__': diff --git a/infra/tools/wycheproof/run.py b/infra/tools/wycheproof/run.py index 92d576400..e14fc27c3 100644 --- a/infra/tools/wycheproof/run.py +++ b/infra/tools/wycheproof/run.py @@ -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)