From: Ian Jackson Date: Thu, 22 Oct 2020 14:02:18 +0000 (+0100) Subject: host reuse fixes: Do not break host-reuse if no host allocated X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=de177e77cd191ed4163fed80cfce7ecab4a96824;p=osstest.git host reuse fixes: Do not break host-reuse if no host allocated If host allocation failed, or our dependency jobs failed, then we won't have allocated a host. The host runvar will not be set. In this case, we want to do nothing. But we forgot to pass $noneok to selecthost. Signed-off-by: Ian Jackson --- diff --git a/ts-host-reuse b/ts-host-reuse index e2498bb..b885a3e 100755 --- a/ts-host-reuse +++ b/ts-host-reuse @@ -165,7 +165,7 @@ sub act_start_test () { sub act_final () { if (!@ARGV) { - $ho = selecthost($whhost); + $ho = selecthost($whhost, 1); return unless $ho; host_update_lifecycle_info($ho, 'final'); } elsif ("@ARGV" eq "--post-test-ok") {