tsuite) Only test completions if installed

Some tests failed with label `failed', which is incorrect because the
completions just weren't installed.  Completions weren't installed
because the commands to complete weren't installed.
Fixed so that if commands aren't available, the tests fail with label
`unsupported'.
This commit is contained in:
Freddy Vulto 2009-07-16 22:51:18 +02:00
parent 2d905413fb
commit f615d17cb6
9 changed files with 27 additions and 9 deletions

View File

@ -1 +1,3 @@
source "lib/completions/change_pw.exp"
if {[assert_bash_type {change_pw}]} {
source "lib/completions/change_pw.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/check_db.exp"
if {[assert_bash_type {check_db}]} {
source "lib/completions/check_db.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/check_perms.exp"
if {[assert_bash_type {check_perms}]} {
source "lib/completions/check_perms.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/civclient.exp"
if {[assert_bash_type {civclient}]} {
source "lib/completions/civclient.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/civserver.exp"
if {[assert_bash_type {civserver}]} {
source "lib/completions/civserver.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/cksfv.exp"
if {[assert_bash_type {cksfv}]} {
source "lib/completions/cksfv.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/cleanarch.exp"
if {[assert_bash_type {cleanarch}]} {
source "lib/completions/cleanarch.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/clone_member.exp"
if {[assert_bash_type {clone_member}]} {
source "lib/completions/clone_member.exp"
}; # if

View File

@ -1 +1,3 @@
source "lib/completions/config_list.exp"
if {[assert_bash_type {config_list}]} {
source "lib/completions/config_list.exp"
}; # if