All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused
Date: Wed, 1 Apr 2015 14:07:09 +0100	[thread overview]
Message-ID: <1427893629-6403-1-git-send-email-ian.campbell@citrix.com> (raw)

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

             reply	other threads:[~2015-04-01 13:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 13:07 Ian Campbell [this message]
2015-04-01 13:55 ` [PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused Ian Jackson
2015-04-01 14:44   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427893629-6403-1-git-send-email-ian.campbell@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.