summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-25 20:53:55 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-25 20:53:55 +0200
commite9082c4d76d76b071622e135590b0d1e4a9fbaf6 (patch)
tree08cb0ab6f45832ee31b49c9e8d4e2bf461fb0ad2
parenta958ccde50b9fa4feee7432adc134fcfd4fbad83 (diff)
downloadbash-completion-e9082c4d76d76b071622e135590b0d1e4a9fbaf6.tar.gz
testsuite: Fix ssh first arg partial hostname test case.
User's known hosts file will affect the expected result, so use get_known_hosts instead of get_hosts, and add explicit "l" prefix to limit number of completions.
-rw-r--r--test/lib/completions/ssh.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/completions/ssh.exp b/test/lib/completions/ssh.exp
index 1599dccc..3ef0bb69 100644
--- a/test/lib/completions/ssh.exp
+++ b/test/lib/completions/ssh.exp
@@ -60,7 +60,7 @@ sync_after_int
set test "First argument should complete partial hostname"
-assert_complete_partial [get_hosts] ssh "" $test -ltrim-colon-completions
+assert_complete_partial [get_known_hosts] ssh "l" $test -ltrim-colon-completions
sync_after_int