]> xenbits.xensource.com Git - osstest.git/commitdiff
shared/reuse: Rely on @ for ts-host-ping-check
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 21 Aug 2020 16:40:07 +0000 (17:40 +0100)
committerIan Jackson <iwj@xenproject.org>
Wed, 7 Oct 2020 16:15:28 +0000 (17:15 +0100)
Remove the check for SharedReady.

The existence of this check is perplexing.  It was introduced in
  ts-host-ping-check: Do not run if host is being reused
in 8f1dc3f7c401 (from 2015).

At that time we only share build hosts, and build hosts never ran this
script.  So I don't understand what that was hoping to achieve.  Maybe
it made some difference in a now-lost pre-rebase situation.

Anyway, in our current tree I think we want to rerun the
ts-host-ping-check when we reuse a test host.  My change to add @ to
parts of per-host-prep in sg-run-job deliberately omitted the step
with testid host-ping-check-xen/@.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-ping-check

index a670680c23d3f27a8798e79351c2d6d5fae0a5b9..512aaec388e2158a36e7d8af0a97bd5ac231eb21 100755 (executable)
@@ -27,8 +27,6 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
-exit 0 if $ho->{SharedReady};
-
 $_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee -a /dev/stderr`;
 
 m/\b([0-9.]+)% packet loss\b/ or die "$_ ?";