rec_log"REDHAT_BUGZILLA_PRODUCT should be $name and is $strip",$stripeq$name,$failref;
# Test for RH Bugzilla Product Version
rec_log"REDHAT_BUGZILLA_PRODUCT_VERSION should be $target and is $content{'REDHAT_BUGZILLA_PRODUCT_VERSION'}",$content{'REDHAT_BUGZILLA_PRODUCT_VERSION'}eq$target,$failref;
rec_log"REDHAT_SUPPORT_PRODUCT should be $name and is $strip",$stripeq$name,$failref;
# Test for RH Support Product Version
rec_log"REDHAT_SUPPORT_PRODUCT_VERSION should be $target and is $content{'REDHAT_SUPPORT_PRODUCT_VERSION'}",$content{'REDHAT_SUPPORT_PRODUCT_VERSION'}eq$target,$failref;
# Test for Variant but only in case of Server or Workstation
if($variantne"generic"){
$strip=strip_marks($content{'VARIANT'});
rec_log"VARIANT should be $variant and is $strip",$stripeq$variant,$failref;
# Test for VARIANT_ID
rec_log"VARIANT_ID should be $variant_id and is $content{'VARIANT_ID'}",$content{'VARIANT_ID'}eq$variant_id,$failref;
}
else{
print"VARIANT was not tested because the compose is not Workstation or Server Edition.\n";
print"VARIANT_ID was not tested because the compose is not Workstation or Server Edition.\n";
}
# Check for fails, count them, collect their messages and die if something was found.
my$failcount=scalar@fails;
script_run"echo \"There were $failcount failures in total.\" >> /tmp/os-release.log";