Mailing List Archive

[OSSTEST PATCH 15/16] 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 <iwj@xenproject.org>
---
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.20.1