From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused Date: Wed, 1 Apr 2015 14:07:09 +0100 Message-ID: <1427893629-6403-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Assume it was done at install time. Mostly this is to avoid my sitting around waiting 20s when using standalone mode, perhaps there is a better way? Signed-off-by: Ian Campbell --- ts-host-ping-check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts-host-ping-check b/ts-host-ping-check index 74c008c..ca8920c 100755 --- a/ts-host-ping-check +++ b/ts-host-ping-check @@ -26,6 +26,8 @@ our ($whhost) = @ARGV; $whhost ||= 'host'; our $ho= selecthost($whhost); +exit 0 if $ho->{SharedReady}; + $_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee /dev/stderr`; m/\b([0-9.]+)% packet loss\b/ or die "$_ ?"; -- 2.1.4