]> xenbits.xensource.com Git - osstest.git/commitdiff
host reuse fixes: Do not break host-reuse if no host allocated
authorIan Jackson <iwj@xenproject.org>
Thu, 22 Oct 2020 14:02:18 +0000 (15:02 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 22 Oct 2020 16:42:03 +0000 (17:42 +0100)
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 <iwj@xenproject.org>
ts-host-reuse

index e2498bb6c28839928f9c9688986b3dd66e4dbd0e..b885a3e65cff34d54269808602f81fd714ad6018 100755 (executable)
@@ -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") {