[Bash-completion-commits] [SCM] bash-completion branch, master, updated. f615d17cb6c354c7dbb5678618fc1a22e3cab24f

Freddy Vulto fvulto at gmail.com
Thu Jul 16 20:52:59 UTC 2009


The following commit has been merged in the master branch:
commit f615d17cb6c354c7dbb5678618fc1a22e3cab24f
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Thu Jul 16 22:51:18 2009 +0200

    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'.

diff --git a/test/completion/change_pw.exp b/test/completion/change_pw.exp
index c1a996b..2a1334c 100644
--- a/test/completion/change_pw.exp
+++ b/test/completion/change_pw.exp
@@ -1 +1,3 @@
-source "lib/completions/change_pw.exp"
+if {[assert_bash_type {change_pw}]} {
+    source "lib/completions/change_pw.exp"
+}; # if
diff --git a/test/completion/check_db.exp b/test/completion/check_db.exp
index 19bc9fc..09fddb2 100644
--- a/test/completion/check_db.exp
+++ b/test/completion/check_db.exp
@@ -1 +1,3 @@
-source "lib/completions/check_db.exp"
+if {[assert_bash_type {check_db}]} {
+    source "lib/completions/check_db.exp"
+}; # if
diff --git a/test/completion/check_perms.exp b/test/completion/check_perms.exp
index e664246..a7b9d2d 100644
--- a/test/completion/check_perms.exp
+++ b/test/completion/check_perms.exp
@@ -1 +1,3 @@
-source "lib/completions/check_perms.exp"
+if {[assert_bash_type {check_perms}]} {
+    source "lib/completions/check_perms.exp"
+}; # if
diff --git a/test/completion/civclient.exp b/test/completion/civclient.exp
index 933ec8e..45eeb3f 100644
--- a/test/completion/civclient.exp
+++ b/test/completion/civclient.exp
@@ -1 +1,3 @@
-source "lib/completions/civclient.exp"
+if {[assert_bash_type {civclient}]} {
+    source "lib/completions/civclient.exp"
+}; # if
diff --git a/test/completion/civserver.exp b/test/completion/civserver.exp
index a3eb4a5..f16419f 100644
--- a/test/completion/civserver.exp
+++ b/test/completion/civserver.exp
@@ -1 +1,3 @@
-source "lib/completions/civserver.exp"
+if {[assert_bash_type {civserver}]} {
+    source "lib/completions/civserver.exp"
+}; # if
diff --git a/test/completion/cksfv.exp b/test/completion/cksfv.exp
index 12e398e..b7fc908 100644
--- a/test/completion/cksfv.exp
+++ b/test/completion/cksfv.exp
@@ -1 +1,3 @@
-source "lib/completions/cksfv.exp"
+if {[assert_bash_type {cksfv}]} {
+    source "lib/completions/cksfv.exp"
+}; # if
diff --git a/test/completion/cleanarch.exp b/test/completion/cleanarch.exp
index e7efa8b..925ab60 100644
--- a/test/completion/cleanarch.exp
+++ b/test/completion/cleanarch.exp
@@ -1 +1,3 @@
-source "lib/completions/cleanarch.exp"
+if {[assert_bash_type {cleanarch}]} {
+    source "lib/completions/cleanarch.exp"
+}; # if
diff --git a/test/completion/clone_member.exp b/test/completion/clone_member.exp
index f2c7fa0..f8d10fa 100644
--- a/test/completion/clone_member.exp
+++ b/test/completion/clone_member.exp
@@ -1 +1,3 @@
-source "lib/completions/clone_member.exp"
+if {[assert_bash_type {clone_member}]} {
+    source "lib/completions/clone_member.exp"
+}; # if
diff --git a/test/completion/config_list.exp b/test/completion/config_list.exp
index d014f57..749e7fa 100644
--- a/test/completion/config_list.exp
+++ b/test/completion/config_list.exp
@@ -1 +1,3 @@
-source "lib/completions/config_list.exp"
+if {[assert_bash_type {config_list}]} {
+    source "lib/completions/config_list.exp"
+}; # if

-- 
bash-completion



More information about the Bash-completion-commits mailing list