[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 75969454c032a9603074e15abb684c3209671f77
Freddy Vulto
fvulto at gmail.com
Sat Nov 21 09:20:47 UTC 2009
The following commit has been merged in the master branch:
commit 75969454c032a9603074e15abb684c3209671f77
Author: Freddy Vulto <fvulto at gmail.com>
Date: Sat Nov 21 10:18:54 2009 +0100
(testsuite) Make expected lists unique
diff --git a/test/lib/library.exp b/test/lib/library.exp
index 7319793..2d09179 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -371,7 +371,7 @@ proc get_hosts {} {
if {[llength $avahi_hosts] > 0} {
lappend hosts $avahi_hosts
}; # if
- return $hosts
+ return [lsort -unique $hosts]
}; # get_hosts()
@@ -416,7 +416,7 @@ proc get_signals {} {
# @param integer $size Chunk size
# @result boolean True if successful, False if not
proc match_items {items test {size 20}} {
- set items [exec sort << [join $items "\n"]]
+ set items [exec sort | uniq << [join $items "\n"]]
set result false
for {set i 0} {$i < [llength $items]} {set i [expr {$i + $size}]} {
set expected ""
--
bash-completion
More information about the Bash-completion-commits
mailing list