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)