summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-13 22:03:58 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-13 22:03:58 +0200
commit3035f8d52efe33749a8c027e193559ee7dd4c357 (patch)
treed01d741f8d358e6be300fbb0527932c2478e12d0 /tests
parent8441f091437418c268d619e4eb67cb75818ef31e (diff)
Git clone / fetch
Diffstat (limited to 'tests')
-rw-r--r--tests/cli.rs4
-rw-r--r--tests/server_shell.rs8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/cli.rs b/tests/cli.rs
index e642781..6ace151 100644
--- a/tests/cli.rs
+++ b/tests/cli.rs
@@ -72,7 +72,7 @@ fn quits_when_exit_command_is_sent() -> Result<()> {
fn reports_error_with_unsupported_shell_commands() -> Result<()> {
let mut c = spawn_interactive_process()?;
c.p.send_line("ls")?;
- c.p.exp_string("Unknown input \"ls\"")?;
+ c.p.exp_string("error: unrecognized subcommand 'ls'")?;
expect_prompt(&mut c.p)?;
Ok(())
}
@@ -81,7 +81,7 @@ fn reports_error_with_unsupported_shell_commands() -> Result<()> {
fn reports_error_with_nonsense_input() -> Result<()> {
let mut c = spawn_interactive_process()?;
c.p.send_line(" asd fg ")?;
- c.p.exp_string("Unknown input \"asd fg\"")?;
+ c.p.exp_string("error: unrecognized subcommand 'asd'")?;
expect_prompt(&mut c.p)?;
Ok(())
}
diff --git a/tests/server_shell.rs b/tests/server_shell.rs
index 8cf9bda..5028ac9 100644
--- a/tests/server_shell.rs
+++ b/tests/server_shell.rs
@@ -150,7 +150,6 @@ fn shows_a_prompt() -> Result<()> {
}
#[test]
-#[ignore] // requires non-interactive commands
fn git_clone_works_with_an_empty_repo() -> Result<()> {
let c = spawn_ssh_server()?;
let repo_name = "my-new-repo";
@@ -159,9 +158,10 @@ fn git_clone_works_with_an_empty_repo() -> Result<()> {
Command::new("git")
.args([
"clone",
- "-v",
- "--progress",
- &format!("ssh://shukkie@localhost:{}/{}.git", c.ssh_port, repo_name),
+ &format!(
+ "ssh://shukkie@localhost:{}/home/shukkie/git/{}.git",
+ c.ssh_port, repo_name
+ ),
])
.current_dir(&c.workdir)
.timeout(std::time::Duration::from_secs(3))