diff --git a/test/lib/library.exp b/test/lib/library.exp index 5194191e..73197932 100644 --- a/test/lib/library.exp +++ b/test/lib/library.exp @@ -380,8 +380,8 @@ proc get_hosts {} { proc get_hosts_avahi {} { # Retrieving hosts is successful? if { [catch {exec bash -c { - type avahi-browse >&/dev/null && [ -n "$(pidof avahi-daemon)" ] \ - && avahi-browse -cpr _workstation._tcp | grep ^= | cut -d\; -f7 | sort -u + type avahi-browse >&/dev/null && \ + && avahi-browse -cpr _workstation._tcp 2>/dev/null | grep ^= | cut -d\; -f7 | sort -u }} hosts] } { # No, retrieving hosts yields error; # Reset hosts