diff options
Diffstat (limited to 'test_utils/src/lib.rs')
| -rw-r--r-- | test_utils/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 64e3fff..ba9d30c 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -708,13 +708,14 @@ impl CliTester { | |||
| 708 | formatter: ColorfulTheme::default(), | 708 | formatter: ColorfulTheme::default(), |
| 709 | } | 709 | } |
| 710 | } | 710 | } |
| 711 | pub fn new_with_timeout<I, S>(timeout_ms: u64, args: I) -> Self | 711 | pub fn new_with_timeout_from_dir<I, S>(timeout_ms: u64, dir: &PathBuf, args: I) -> Self |
| 712 | where | 712 | where |
| 713 | I: IntoIterator<Item = S>, | 713 | I: IntoIterator<Item = S>, |
| 714 | S: AsRef<OsStr>, | 714 | S: AsRef<OsStr>, |
| 715 | { | 715 | { |
| 716 | Self { | 716 | Self { |
| 717 | rexpect_session: rexpect_with(args, timeout_ms).expect("rexpect to spawn new process"), | 717 | rexpect_session: rexpect_with_from_dir(dir, args, timeout_ms) |
| 718 | .expect("rexpect to spawn new process"), | ||
| 718 | formatter: ColorfulTheme::default(), | 719 | formatter: ColorfulTheme::default(), |
| 719 | } | 720 | } |
| 720 | } | 721 | } |