Add test for Shell::Unix with shopts

This commit is contained in:
Félix Saparelli 2021-04-17 02:19:59 +12:00
parent 1c338adb9d
commit 25f02c5777
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 10 additions and 0 deletions

View File

@ -588,6 +588,16 @@ mod tests {
);
}
#[test]
fn test_shell_alternate_shopts() {
let _ = spawn(
&["echo".into(), "hi".into()],
&[],
Shell::Unix("bash -o errexit".into()),
false,
);
}
#[test]
fn longest_common_path_should_return_correct_value() {
let single_path = vec![PathBuf::from("/tmp/random/")];