Skip to content

Commit 0074dc8

Browse files
RoyLinRoyLin
authored andcommitted
fix(test): use powershell env expansion on windows
1 parent 7a17d6d commit 0074dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/tools/builtin/bash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ mod tests {
267267
HashMap::from([("A3S_TEST_ENV".to_string(), "visible".to_string())]),
268268
));
269269
#[cfg(windows)]
270-
let command = "echo|set /p=%A3S_TEST_ENV%";
270+
let command = "powershell -NoProfile -Command \"Write-Output $env:A3S_TEST_ENV\"";
271271
#[cfg(not(windows))]
272272
let command = "printf '%s' \"$A3S_TEST_ENV\"";
273273

0 commit comments

Comments
 (0)