Fix mode tests which use sh to not run on windows (#8601)

See
https://github.com/nushell/nushell/pull/8306#issuecomment-1483111380.
This commit is contained in:
StevenDoesStuffs 2023-03-24 12:10:15 -05:00 committed by GitHub
parent f66136bc86
commit dd22647fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,6 +201,7 @@ fn run_export_extern() {
}
#[test]
#[cfg(not(windows))]
fn run_in_login_mode() {
let child_output = std::process::Command::new("sh")
.arg("-c")
@ -215,6 +216,7 @@ fn run_in_login_mode() {
}
#[test]
#[cfg(not(windows))]
fn run_in_not_login_mode() {
let child_output = std::process::Command::new("sh")
.arg("-c")
@ -229,6 +231,7 @@ fn run_in_not_login_mode() {
}
#[test]
#[cfg(not(windows))]
fn run_in_interactive_mode() {
let child_output = std::process::Command::new("sh")
.arg("-c")
@ -243,6 +246,7 @@ fn run_in_interactive_mode() {
}
#[test]
#[cfg(not(windows))]
fn run_in_noninteractive_mode() {
let child_output = std::process::Command::new("sh")
.arg("-c")