# HG changeset patch # User Dario Sestito # Date 1249653553 -3600 # Node ID 7297abc8565b9f03add0dee0dc8f2f6ccf4c6b72 # Parent 473fefd9c5deafd4509991aff44200b788ee5cd3 Add new raptor error category to raptor parser (tool_didnt_return_version) diff -r 473fefd9c5de -r 7297abc8565b common/tools/raptor/RaptorCommon.pm --- a/common/tools/raptor/RaptorCommon.pm Thu Aug 06 15:03:28 2009 +0100 +++ b/common/tools/raptor/RaptorCommon.pm Fri Aug 07 14:59:13 2009 +0100 @@ -21,6 +21,7 @@ our $CATEGORY_RAPTORERROR_NOBLDINFFOUND = 'no_bld_inf_found'; our $CATEGORY_RAPTORERROR_CANTFINDMMPFILE = 'cant_find_mmp_file'; our $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors'; +our $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version'; our $SEVERITY_UNKNOWN = 'unknown'; our $SEVERITY_CRITICAL = 'critical'; diff -r 473fefd9c5de -r 7297abc8565b common/tools/raptor/RaptorError.pm --- a/common/tools/raptor/RaptorError.pm Thu Aug 06 15:03:28 2009 +0100 +++ b/common/tools/raptor/RaptorError.pm Fri Aug 07 14:59:13 2009 +0100 @@ -71,6 +71,12 @@ my $subcategory = $RaptorCommon::CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS; RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); } + elsif ($text =~ m,tool .* from config .* did not return version .* as required,) + { + $severity = $RaptorCommon::SEVERITY_CRITICAL; + my $subcategory = $RaptorCommon::CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION; + RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); + } else # log everything by default { $severity = $RaptorCommon::SEVERITY_NORMAL;