ci/lava: Remove MINIO_RESULTS_UPLOAD if requested
When we don't want to communicate with minio, e.g. running lava_job_submitter script locally, MINIO_RESULTS_UPLOAD should be unset. But this variable is already set by generate-env script, so we need to remove it from the /set-job-env-vars.sh to avoid declaring it in unexpected scenarios. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17645>
This commit is contained in:
@@ -160,7 +160,7 @@ def generate_lava_yaml(args):
|
|||||||
else:
|
else:
|
||||||
run_steps += [
|
run_steps += [
|
||||||
"echo Could not find jwt file, disabling MINIO requests...",
|
"echo Could not find jwt file, disabling MINIO requests...",
|
||||||
"unset MINIO_RESULTS_UPLOAD",
|
"sed -i '/MINIO_RESULTS_UPLOAD/d' /set-job-env-vars.sh",
|
||||||
]
|
]
|
||||||
|
|
||||||
run_steps += [
|
run_steps += [
|
||||||
|
Reference in New Issue
Block a user