1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-11 18:39:35 +00:00

Support passing env vars into test environment in setup

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-30 01:46:37 +00:00
parent 2cc0cdc0c2
commit 379141a8c7
5 changed files with 84 additions and 27 deletions

View file

@ -49,7 +49,7 @@ pub fn run_script_impl(script_path: &Path, params: &RunParams) -> Result<()> {
// Run setup hook if provided
if let Some(setup) = &params.setup {
setup(&env)?;
setup(&mut env)?;
}
// Track script updates if we're in update mode