helper: use return code from docker run for reproduce, run_fuzzer.

Fixes #1246.
This commit is contained in:
Oliver Chang 2018-03-16 09:49:36 +11:00
parent 61d7fab9e6
commit 52f5934785
1 changed files with 5 additions and 5 deletions

View File

@ -227,10 +227,10 @@ def docker_run(run_args, print_output=True):
try:
subprocess.check_call(command, stdout=stdout, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
return False
except subprocess.CalledProcessError as e:
return e.returncode
return True
return 0
def docker_build(build_args, pull=False):
@ -344,7 +344,7 @@ def run_fuzzer(args):
args.fuzzer_name,
] + args.fuzzer_args
docker_run(run_args)
return docker_run(run_args)
def coverage(args):
@ -416,7 +416,7 @@ def reproduce(args):
'-runs=100',
] + args.fuzzer_args
docker_run(run_args)
return docker_run(run_args)
def generate(args):