Now, a job can specify that lack of a suitable host should be treated
as a plain test failure (ie, subject to the usual regression analysis)
rather than as an infrastructure or configuration problem.
This will be useful for some tests which don't work in some branches
because of lack of suitable hardware. We want to avoid encoding our
hardware availability situation in make-flight.
Signed-off-by: Ian Jackson <iwj@xenproject.org>
my ($ok, $bookinglist) = attempt_allocation({
ts_hosts_allocate_precheck => 1,
}, 0);
+ if ($ok == $alloc_starved_r && $r{hostalloc_missing_expected}) {
+ broken 'no suitable hosts available (as possibly expected)',
+ 'fail';
+ }
die $ok if $ok>1;
}