aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/gcb
diff options
context:
space:
mode:
authorGravatar Max Moroz <mmoroz@chromium.org>2020-01-17 13:06:27 -0800
committerGravatar GitHub <noreply@github.com>2020-01-17 13:06:27 -0800
commit5dd3f4cebe2d99015d8a8595d737c239b42dcbf9 (patch)
tree9d93b169be65e69656a286ff9d3f275d13271ebe /infra/gcb
parentdcf68ac497989e0328aba0e6df07a19688d7c249 (diff)
[infra] Add env variable to the DF collection GCB step (#1632). (#3250)
* [infra] Add env variable to the DF collection GCB step (#1632). * format
Diffstat (limited to 'infra/gcb')
-rw-r--r--infra/gcb/build_project.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/infra/gcb/build_project.py b/infra/gcb/build_project.py
index 642fce21..569c7dbe 100644
--- a/infra/gcb/build_project.py
+++ b/infra/gcb/build_project.py
@@ -268,7 +268,7 @@ def get_build_steps(project_dir):
})
if sanitizer == 'dataflow' and fuzzing_engine == 'dataflow':
- dataflow_steps = dataflow_post_build_steps(name)
+ dataflow_steps = dataflow_post_build_steps(name, env)
if dataflow_steps:
build_steps.extend(dataflow_steps)
else:
@@ -337,7 +337,7 @@ def get_build_steps(project_dir):
return build_steps
-def dataflow_post_build_steps(project_name):
+def dataflow_post_build_steps(project_name, env):
steps = []
download_corpora_step = build_lib.download_corpora_step(project_name)
if not download_corpora_step:
@@ -346,6 +346,7 @@ def dataflow_post_build_steps(project_name):
steps = [download_corpora_step]
steps.append({
'name': 'gcr.io/oss-fuzz-base/base-runner',
+ 'env': env,
'args': [
'bash', '-c',
('for f in /corpus/*.zip; do unzip -q $f -d ${f%%.*}; done && '