Add new raptor error category to raptor parser (tool_didnt_return_version)
authorDario Sestito <darios@symbian.org>
Fri, 07 Aug 2009 14:59:13 +0100
changeset 339 7297abc8565b
parent 338 473fefd9c5de
child 340 aee074ee2646
Add new raptor error category to raptor parser (tool_didnt_return_version)
common/tools/raptor/RaptorCommon.pm
common/tools/raptor/RaptorError.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';
--- 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;