From 66b19116bdc7372db561273d260d594927a3613c Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Tue, 3 Jan 2017 11:07:58 -0800 Subject: [PATCH] Update helper.py --- infra/helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/helper.py b/infra/helper.py index 9961072f1..f044a70f4 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -287,7 +287,8 @@ def reproduce(run_args): parser.add_argument('project_name', help='name of the project') parser.add_argument('fuzzer_name', help='name of the fuzzer') parser.add_argument('testcase_path', help='path of local testcase') - + parser.add_argument('fuzzer_args', help='arguments to pass to the fuzzer', + nargs=argparse.REMAINDER) args = parser.parse_args(run_args) if not _check_project_exists(args.project_name): @@ -306,7 +307,8 @@ def reproduce(run_args): '-t', 'ossfuzz/base-runner', 'reproduce', '/out/%s' % args.fuzzer_name, - ] + '-runs=100', + ] + args.fuzzer_args print('Running:', _get_command_string(command)) pipe = subprocess.Popen(command)