# HG changeset patch # User Dario Sestito # Date 1267720231 0 # Node ID d7b846505d9edc3caabfeb245f41e95c3e2f4b2c # Parent 314156ec7d7cb41f205e07cd829ee7c3bf035777 Add more categories for unreciped failures diff -r 314156ec7d7c -r d7b846505d9e uh_parser/RaptorUnreciped.pm --- a/uh_parser/RaptorUnreciped.pm Thu Mar 04 15:16:36 2010 +0000 +++ b/uh_parser/RaptorUnreciped.pm Thu Mar 04 16:30:31 2010 +0000 @@ -47,6 +47,9 @@ my $CATEGORY_RAPTORUNRECIPED_TARGETNOTREMADEFORERRORS = 'target_not_remade_for_errors'; my $CATEGORY_RAPTORUNRECIPED_IGNORINGOLDCOMMANDSFORTARGET = 'ignoring_old_commands_for_target'; my $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET = 'overriding_commands_for_target'; +my $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS = 'make_target_not_remade_because_of_errors'; +my $CATEGORY_RAPTORUNRECIPED_MAKE_ERROR1 = 'make_error_1'; +my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET = 'make_no_rule_to_make_target'; sub process { @@ -80,7 +83,25 @@ my $subcategory = $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET; RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line); } - elsif ($text =~ m,make\.exe: Nothing to be done for .*,) + elsif ($text =~ m,^make: Target .* not remade because of errors\.,) + { + $severity = $RaptorCommon::SEVERITY_MINOR; + my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS; + RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line); + } + elsif ($text =~ m,^make: \*\*\* .* Error 1,) + { + $severity = $RaptorCommon::SEVERITY_MINOR; + my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_ERROR1; + RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line); + } + elsif ($text =~ m,^make: \*\*\* No rule to make target .*\ needed by .*,) + { + $severity = $RaptorCommon::SEVERITY_MINOR; + my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET; + RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line); + } + elsif ($text =~ m,^make: Nothing to be done for .*,) { # don't dump }