History

See if not having cargo-run output in program invocation fixes it on macos (#450)

Sebastian Thiel committed 4 years ago

Commit a8d9d121 parent c0244391 file · +4 −2Browse files

Unified · Split

git-prompt/tests/prompt.rs+4−2
@@ -5,8 +5,10 @@ mod ask { · 4 unmodified lines
55 #[cfg(unix)]
66 fn username_password() {
77 let mut cmd = Command::new(env!("CARGO"));
8− cmd.args(["run", "--example", "credentials"]);
9− let mut p = expectrl::Session::spawn(cmd).unwrap();
8+ cmd.args(["build", "--example", "credentials"]);
9+ cmd.spawn().unwrap().wait().expect("example builds OK");
10+
11+ let mut p = expectrl::spawn("../target/debug/examples/credentials").unwrap();
1012 p.expect("Username: ").unwrap();
1113 p.send_line(" user with space ").unwrap();
1214 p.expect("\" user with space\"").unwrap();