[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 6a7a8383100ab912a924b2fb11e49a56ff393706
Ville Skyttä
ville.skytta at iki.fi
Sat Jan 16 11:04:42 UTC 2010
The following commit has been merged in the master branch:
commit 6a7a8383100ab912a924b2fb11e49a56ff393706
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Jan 16 12:59:21 2010 +0200
(testsuite) Check rpm -q completion against actual installed packages.
While at it, drop --eval completion test because I couldn't get it to
work with assert_complete (probably because I couldn't escape the
command properly here, see --eval|-E completion in contrib/rpm), and
no longer needed match_max fiddling.
diff --git a/test/lib/completions/rpm.exp b/test/lib/completions/rpm.exp
index dffce93..3ed154a 100644
--- a/test/lib/completions/rpm.exp
+++ b/test/lib/completions/rpm.exp
@@ -8,9 +8,6 @@ proc teardown {} {
}; # teardown()
-set _old_match_max [match_max]
-match_max 100000
-
setup
@@ -20,18 +17,13 @@ assert_complete_any "rpm "
sync_after_int
-assert_complete_any "rpm -q "
-
-
-sync_after_int
-
-
-assert_complete_any "rpm --eval %"
+ # Build list of installed packages
+if {[assert_exec {rpm -qa --qf=%\{NAME\}\n | sort -u} packages]} {
+ assert_complete $packages "rpm -q "
+}; # if
sync_after_int
teardown
-
-match_max $_old_match_max
--
bash-completion
More information about the Bash-completion-commits
mailing list