All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused
@ 2015-04-01 13:07 Ian Campbell
  2015-04-01 13:55 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2015-04-01 13:07 UTC (permalink / raw)
  To: ian.jackson; +Cc: Ian Campbell, xen-devel

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@citrix.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused
  2015-04-01 13:07 [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused Ian Campbell
@ 2015-04-01 13:55 ` Ian Jackson
  2015-04-01 14:44   ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2015-04-01 13:55 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel

Ian Campbell writes ("[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?

I think this way is fine.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Ian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused
  2015-04-01 13:55 ` Ian Jackson
@ 2015-04-01 14:44   ` Ian Campbell
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-04-01 14:44 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel

On Wed, 2015-04-01 at 14:55 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[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?
> 
> I think this way is fine.

Thanks, I'll drop this comment before it goes to pretest.

> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> 
> Ian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-01 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 13:07 [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused Ian Campbell
2015-04-01 13:55 ` Ian Jackson
2015-04-01 14:44   ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.