[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused
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 <ian.campbell@xxxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |