From 2888874fa9c6e117c867cb0dd7b1792b6df391e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 18 Nov 2009 23:33:06 +0200 Subject: [PATCH] Testsuite: don't use pidof to check if avahi-daemon is running, cf. commit bb8912b06ff09f8fed253e7e5b14916e38a48733. --- test/lib/library.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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