From 5e6186418ef2bdf253262aa6d1e4e54e356e4c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 7 Oct 2010 20:10:45 +0000 Subject: [PATCH] Avahi test: Use `getent hosts' instead of `ping -c1'. svn path=/nixos/trunk/; revision=24151 --- tests/avahi.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/avahi.nix b/tests/avahi.nix index fe50edc2858..2bf811b5cb3 100644 --- a/tests/avahi.nix +++ b/tests/avahi.nix @@ -52,9 +52,9 @@ with pkgs; $two->mustSucceed("test `wc -l < out` -gt 0"); # NSS-mDNS. - print STDERR $one->mustSucceed("ping -c1 one.local"); - print STDERR $one->mustSucceed("ping -c1 two.local"); - print STDERR $two->mustSucceed("ping -c1 one.local"); - print STDERR $two->mustSucceed("ping -c1 two.local"); + print STDERR $one->mustSucceed("getent hosts one.local"); + print STDERR $one->mustSucceed("getent hosts two.local"); + print STDERR $two->mustSucceed("getent hosts one.local"); + print STDERR $two->mustSucceed("getent hosts two.local"); ''; }