common/tools/analysis/parse_yarp_files.pl
changeset 204 7912741ec3b3
parent 202 66da43a8fbf8
child 205 863cc9c0bf03
equal deleted inserted replaced
203:011f16c9778b 204:7912741ec3b3
    21 	my $nRecipeErrors = 0;
    21 	my $nRecipeErrors = 0;
    22 #	print "Parsing file $nYarpFile...\n";
    22 #	print "Parsing file $nYarpFile...\n";
    23 	open(FILE, $nYarpFile);
    23 	open(FILE, $nYarpFile);
    24 	while ( <FILE> )
    24 	while ( <FILE> )
    25 	{
    25 	{
    26 		if ( m/Overall attempts:\s*(\d+),(\d+)/ )
    26 		if ( m/^Failures:(\d+)$/ )
    27 		{
    27 		{
    28 			#print "Attempt: $1 Errors: $2\n";
    28 			#print "Attempt: $1 Errors: $2\n";
    29 			$nRecipeErrors = $2;
    29 			$nRecipeErrors = $1;
    30 		}
    30 		}
    31 	}
    31 	}
    32 	close(FILE);
    32 	close(FILE);
    33 #	print "Recipe errors in $nYarpFile: $nRecipeErrors\n";
    33 #	print "Recipe errors in $nYarpFile: $nRecipeErrors\n";
    34 	$nTotalRecipeErrors += $nRecipeErrors;
    34 	$nTotalRecipeErrors += $nRecipeErrors;