From: Ian Jackson Date: Wed, 4 Jul 2018 10:52:27 +0000 (+0100) Subject: resource allocation: PropEq, PropMinVer: Honour HostProp_... X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b7c207293f266423ddb81ac33eba464da7c662c;p=people%2Froyger%2Fosstest.git resource allocation: PropEq, PropMinVer: Honour HostProp_... We need to take these from the config too. Signed-off-by: Ian Jackson CC: Roger Pau Monné --- diff --git a/Osstest/ResourceCondition/PropCompareBase.pm b/Osstest/ResourceCondition/PropCompareBase.pm index abd2640..039f64e 100644 --- a/Osstest/ResourceCondition/PropCompareBase.pm +++ b/Osstest/ResourceCondition/PropCompareBase.pm @@ -47,6 +47,11 @@ sub new { sub _get_val ($$$) { my ($pc, $restype, $resname) = @_; + if ($restype eq 'host') { + my $v = $c{"HostProp_${resname}"}; + return $v if defined $v; + } + # Using _cached avoids needing to worry about $dbh_tests being # closed/reopened between invocations my $hpropq = $dbh_tests->prepare_cached(<