mirror of https://github.com/google/oss-fuzz.git
This commit is contained in:
parent
f199b34afb
commit
e6e71d0a92
|
@ -134,14 +134,17 @@ def get_build_steps(project_dir):
|
||||||
method='GET')
|
method='GET')
|
||||||
|
|
||||||
corpus_archive_path = os.path.join('/corpus', binary_name + '.zip')
|
corpus_archive_path = os.path.join('/corpus', binary_name + '.zip')
|
||||||
download_corpus_args.append('%s %s' % (corpus_archive_path, url))
|
download_corpus_args.append('\'%s %s\'' % (corpus_archive_path, url))
|
||||||
|
|
||||||
# Download corpus.
|
# Download corpus.
|
||||||
build_steps.append(
|
build_steps.append(
|
||||||
{
|
{
|
||||||
'name': 'gcr.io/oss-fuzz-base/base-runner',
|
'name': 'gcr.io/oss-fuzz-base/base-runner',
|
||||||
'entrypoint': 'download_corpus',
|
'args': [
|
||||||
'args': download_corpus_args,
|
'bash',
|
||||||
|
'-c',
|
||||||
|
'download_corpus %s || true' % ' '.join(download_corpus_args),
|
||||||
|
],
|
||||||
'volumes': [{'name': 'corpus', 'path': '/corpus'}],
|
'volumes': [{'name': 'corpus', 'path': '/corpus'}],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue