[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-68-g81dd740

Ville Skyttä ville.skytta at iki.fi
Fri Nov 25 18:58:41 UTC 2011


The following commit has been merged in the master branch:
commit e9082c4d76d76b071622e135590b0d1e4a9fbaf6
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 25 20:53:55 2011 +0200

    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.

diff --git a/test/lib/completions/ssh.exp b/test/lib/completions/ssh.exp
index 1599dcc..3ef0bb6 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list