From dd22647fcd636696ec5d46526f480839021f53a0 Mon Sep 17 00:00:00 2001 From: StevenDoesStuffs Date: Fri, 24 Mar 2023 12:10:15 -0500 Subject: [PATCH] Fix mode tests which use sh to not run on windows (#8601) See https://github.com/nushell/nushell/pull/8306#issuecomment-1483111380. --- tests/shell/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/shell/mod.rs b/tests/shell/mod.rs index 91406a82d8..3031de81c5 100644 --- a/tests/shell/mod.rs +++ b/tests/shell/mod.rs @@ -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")