mirror of
https://github.com/nushell/nushell.git
synced 2025-04-18 18:28:19 +02: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]
|
#[test]
|
||||||
|
#[cfg(not(windows))]
|
||||||
fn run_in_login_mode() {
|
fn run_in_login_mode() {
|
||||||
let child_output = std::process::Command::new("sh")
|
let child_output = std::process::Command::new("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
@ -215,6 +216,7 @@ fn run_in_login_mode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(windows))]
|
||||||
fn run_in_not_login_mode() {
|
fn run_in_not_login_mode() {
|
||||||
let child_output = std::process::Command::new("sh")
|
let child_output = std::process::Command::new("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
@ -229,6 +231,7 @@ fn run_in_not_login_mode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(windows))]
|
||||||
fn run_in_interactive_mode() {
|
fn run_in_interactive_mode() {
|
||||||
let child_output = std::process::Command::new("sh")
|
let child_output = std::process::Command::new("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
@ -243,6 +246,7 @@ fn run_in_interactive_mode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(windows))]
|
||||||
fn run_in_noninteractive_mode() {
|
fn run_in_noninteractive_mode() {
|
||||||
let child_output = std::process::Command::new("sh")
|
let child_output = std::process::Command::new("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
|
Loading…
Reference in New Issue
Block a user