[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 96a936443e3d22493491de660a53fb7c63c39f1d
Freddy Vulto
fvulto at gmail.com
Sat Apr 17 06:17:06 UTC 2010
The following commit has been merged in the master branch:
commit 96a936443e3d22493491de660a53fb7c63c39f1d
Author: Freddy Vulto <fvulto at gmail.com>
Date: Thu Apr 15 23:27:08 2010 +0200
(testsuite) Run tests for superuser commands only if command is available
Case was /usr/sbin/grub.
Added check to `assert_source_completions()' if command is really
available for current user.
diff --git a/test/lib/library.exp b/test/lib/library.exp
index f582922..b8fd9f2 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -481,7 +481,10 @@ proc assert_no_output {{cmd} {test ""} {prompt /@}} {
# @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 {
+ [is_bash_completion_installed_for $command] &&
+ [assert_bash_type $command]
+ } {
if {[string length $file] == 0} {
set file "lib/completions/$command.exp"
}
--
bash-completion
More information about the Bash-completion-commits
mailing list