This is going to make defaulting etc. a bit easier. No functional change.
Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> CC: Roger Pau Monné <roy...@freebsd.org> --- Osstest/ResourceCondition/PropCompareBase.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Osstest/ResourceCondition/PropCompareBase.pm b/Osstest/ResourceCondition/PropCompareBase.pm index 5306bb8..1e3aa85 100644 --- a/Osstest/ResourceCondition/PropCompareBase.pm +++ b/Osstest/ResourceCondition/PropCompareBase.pm @@ -44,7 +44,7 @@ sub new { }, $class; } -sub check { +sub _get_val ($$$) { my ($pc, $restype, $resname) = @_; # Using _cached avoids needing to worry about $dbh_tests being @@ -57,9 +57,14 @@ END my $row= $hpropq->fetchrow_arrayref(); $hpropq->finish(); + + my $v = $row->[0]; + return $v; +} - my $propval = $row->[0]; - +sub check { + my ($pc, $restype, $resname) = @_; + my $proval = $pc->_get_val($pc, $restype, $resname); return $pc->_check($propval); } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel