Skip to content

Allow setting env vars via script_env in the test section - #5984

Draft
jschueller wants to merge 4 commits into
conda:mainfrom
jschueller:test_script_env
Draft

Allow setting env vars via script_env in the test section#5984
jschueller wants to merge 4 commits into
conda:mainfrom
jschueller:test_script_env

Conversation

@jschueller

@jschueller jschueller commented May 21, 2026

Copy link
Copy Markdown
Contributor

Add test/script_env support to meta.yaml, mirroring the existing build/script_env feature. Environment variables listed under test/script_env are forwarded to the test environment, with a warning if they are undefined. Supports both NAME (read from os.environ) and NAME=VALUE literal formats.

Closes #4940

@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review May 21, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 21, 2026
Add `test/script_env` support to meta.yaml, mirroring the existing
`build/script_env` feature. Environment variables listed under
`test/script_env` are forwarded to the test environment, with a warning
if they are undefined. Supports both `NAME` (read from os.environ) and
`NAME=VALUE` literal formats.

Closes conda#4940
@codspeed-hq

codspeed-hq Bot commented May 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing jschueller:test_script_env (501d842) with main (fc0fa17)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (a9405b3) during the generation of this report, so fc0fa17 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

allow setting env vars in test section

2 participants