diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
commit | 5732da2af736c40cf693354485446ab4867ecb4d (patch) | |
tree | 76d76cdfa16ca62d20fb109da13895ec64fff110 /test/lib/completions/ssh.exp | |
parent | 9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff) | |
download | bash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz |
New upstream version 2.9upstream/2.9
Diffstat (limited to 'test/lib/completions/ssh.exp')
-rw-r--r-- | test/lib/completions/ssh.exp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/lib/completions/ssh.exp b/test/lib/completions/ssh.exp index c082558e..1702371c 100644 --- a/test/lib/completions/ssh.exp +++ b/test/lib/completions/ssh.exp @@ -19,21 +19,6 @@ proc teardown {} { setup -set test "Tab should complete both commands and hostname" - # Try completion -set cmd "ssh -F config ls" -send "$cmd\t" -set expected "^$cmd\r\n.*ls.*ls_known_host.*\r\n/@$cmd$" -expect { - -re $expected { pass "$test" } - -re /@ { unresolved "$test at prompt" } - default { unresolved "$test" } -} - - -sync_after_int - - set test "-F without space shouldn't error" # Try completion set cmd "ssh -F" @@ -50,15 +35,6 @@ expect { sync_after_int -set test "First argument shouldn't complete with commands" -# NOTE: This test assumes there's a command "bash" and no host named "bash" -set cmd "ssh bas" -assert_complete [get_known_hosts "bas"] $cmd $test - - -sync_after_int - - set test "First argument should complete partial hostname" # Build string list of hostnames, starting with the character of the first # host, unless host starts with a COMP_WORDBREAKS character, e.g. a colon (:). @@ -82,11 +58,4 @@ assert_complete $hosts "ssh $char" $test -ltrim-colon-completions -expect-cmd-mi sync_after_int -set test "-F should complete filename" -assert_complete "-Fspaced\\ \\ conf" "ssh -Fsp" $test - - -sync_after_int - - teardown |