mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Add test for Shell::Unix with shopts
This commit is contained in:
parent
1c338adb9d
commit
25f02c5777
@ -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]
|
#[test]
|
||||||
fn longest_common_path_should_return_correct_value() {
|
fn longest_common_path_should_return_correct_value() {
|
||||||
let single_path = vec![PathBuf::from("/tmp/random/")];
|
let single_path = vec![PathBuf::from("/tmp/random/")];
|
||||||
|
Loading…
Reference in New Issue
Block a user