From de177e77cd191ed4163fed80cfce7ecab4a96824 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 22 Oct 2020 15:02:18 +0100 Subject: [PATCH] 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 --- ts-host-reuse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-host-reuse b/ts-host-reuse index e2498bb6..b885a3e6 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") { -- 2.39.5