[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-483-g6e08dc5
Ville Skyttä
ville.skytta at iki.fi
Wed Oct 26 18:31:41 UTC 2011
The following commit has been merged in the master branch:
commit 6e08dc550474c66bc09a539d7f35d2f58891be9c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Oct 26 21:24:56 2011 +0300
testsuite/assert_source_completions: Test for command availability too.
We now install (_minimal) completions for just about everything, but
that doesn't mean we can sanely test everything if the command is not
available.
diff --git a/test/lib/library.exp b/test/lib/library.exp
index 35eddf8..f6e9f21 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -580,12 +580,13 @@ proc assert_no_output {{cmd} {test ""} {prompt /@}} {
# Source/run file with additional tests if completion for the specified command
-# is installed in bash.
+# is installed in bash, and the command is available.
# @param string $command Command to check completion availability for.
# @param string $file (optional) File to source/run. Default is
# "lib/completions/$cmd.exp".
proc assert_source_completions {command {file ""}} {
- if {[is_bash_completion_installed_for $command]} {
+ if {[assert_bash_type $command]
+ && [is_bash_completion_installed_for $command]} {
if {[string length $file] == 0} {
set file "$::srcdir/lib/completions/$command.exp"
}
--
bash-completion
More information about the Bash-completion-commits
mailing list