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.
This commit is contained in:
Ville Skyttä 2011-11-25 20:53:55 +02:00
parent a958ccde50
commit e9082c4d76

View File

@ -60,7 +60,7 @@ sync_after_int
set test "First argument should complete partial hostname" 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 sync_after_int