mirror of https://github.com/google/oss-fuzz.git
[infra] Do not pass empty port value to docker. (#4110)
This commit is contained in:
parent
47484451d5
commit
33295d69f7
|
@ -751,12 +751,16 @@ def coverage(args):
|
|||
run_args.extend([
|
||||
'-v',
|
||||
'%s:/out' % _get_output_dir(args.project_name),
|
||||
'-p',
|
||||
'%s:%s' % (args.port, args.port),
|
||||
'-t',
|
||||
'gcr.io/oss-fuzz-base/base-runner',
|
||||
])
|
||||
|
||||
if args.port:
|
||||
run_args.extend([
|
||||
'-p',
|
||||
'%s:%s' % (args.port, args.port),
|
||||
])
|
||||
|
||||
run_args.append('coverage')
|
||||
if args.fuzz_target:
|
||||
run_args.append(args.fuzz_target)
|
||||
|
|
Loading…
Reference in New Issue