]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
resource allocation: PropEq, PropMinVer: Honour HostProp_...
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 4 Jul 2018 10:52:27 +0000 (11:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 11 Jul 2018 14:55:03 +0000 (15:55 +0100)
We need to take these from the config too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Roger Pau Monné <royger@FreeBSD.org>
Osstest/ResourceCondition/PropCompareBase.pm

index abd2640b5acd3dbe4abb2922d208d00be2f18a77..039f64e3b661c82c7b932216ff846eb92811da17 100644 (file)
@@ -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(<<END);