mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
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:
parent
f66136bc86
commit
dd22647fcd
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user