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:
parent
2cc0cdc0c2
commit
379141a8c7
5 changed files with 84 additions and 27 deletions
|
|
@ -49,7 +49,7 @@ pub fn run_script_impl(script_path: &Path, params: &RunParams) -> Result<()> {
|
|||
|
||||
// Run setup hook if provided
|
||||
if let Some(setup) = ¶ms.setup {
|
||||
setup(&env)?;
|
||||
setup(&mut env)?;
|
||||
}
|
||||
|
||||
// Track script updates if we're in update mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue