author | Dario Sestito <darios@symbian.org> |
Fri, 28 May 2010 15:41:53 +0100 | |
changeset 272 | 06db82e8efc6 |
parent 264 | f10adc84543a |
child 293 | a02973783e64 |
permissions | -rw-r--r-- |
177 | 1 |
# Copyright (c) 2009 Symbian Foundation Ltd |
2 |
# This component and the accompanying materials are made available |
|
3 |
# under the terms of the License "Eclipse Public License v1.0" |
|
4 |
# which accompanies this distribution, and is available |
|
5 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
6 |
# |
|
7 |
# Initial Contributors: |
|
8 |
# Symbian Foundation Ltd - initial contribution. |
|
9 |
# |
|
10 |
# Contributors: |
|
258
08436a227940
Add author information. Reviewed descriptions
Dario Sestito <darios@symbian.org>
parents:
252
diff
changeset
|
11 |
# Dario Sestito <darios@symbian.org> |
177 | 12 |
# |
13 |
# Description: |
|
14 |
# Raptor parser module. |
|
15 |
# Extract, analyzes and dumps text in <buildlog> context which doesn't belong to any <recipe> tags |
|
16 |
||
17 |
package RaptorUnreciped; |
|
18 |
||
19 |
use strict; |
|
20 |
use RaptorCommon; |
|
21 |
||
22 |
our $reset_status = {}; |
|
23 |
my $buildlog_status = {}; |
|
24 |
my $buildlog_subtag_status = {}; |
|
25 |
||
26 |
$reset_status->{name} = 'reset_status'; |
|
27 |
$reset_status->{next_status} = {buildlog=>$buildlog_status}; |
|
28 |
||
29 |
$buildlog_status->{name} = 'buildlog_status'; |
|
30 |
$buildlog_status->{next_status} = {'?default?'=>$buildlog_subtag_status}; |
|
31 |
$buildlog_status->{on_start} = 'RaptorUnreciped::on_start_buildlog'; |
|
32 |
$buildlog_status->{on_end} = 'RaptorUnreciped::on_end_buildlog'; |
|
33 |
$buildlog_status->{on_chars} = 'RaptorUnreciped::on_chars_buildlog'; |
|
34 |
||
35 |
$buildlog_subtag_status->{name} = 'buildlog_subtag_status'; |
|
36 |
$buildlog_subtag_status->{next_status} = {}; |
|
37 |
$buildlog_subtag_status->{on_start} = 'RaptorUnreciped::on_start_buildlog_subtag'; |
|
38 |
$buildlog_subtag_status->{on_end} = 'RaptorUnreciped::on_end_buildlog_subtag'; |
|
39 |
||
40 |
my $filename = ''; |
|
41 |
||
42 |
my $characters = ''; |
|
43 |
my $store_chars = 1; |
|
44 |
||
45 |
my $CATEGORY_RAPTORUNRECIPED = 'raptor_unreciped'; |
|
46 |
my $CATEGORY_RAPTORUNRECIPED_IGNORINGOLDCOMMANDSFORTARGET = 'ignoring_old_commands_for_target'; |
|
47 |
my $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET = 'overriding_commands_for_target'; |
|
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
48 |
my $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS = 'make_target_not_remade_because_of_errors'; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
49 |
my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGETNEEDEDBY = 'make_no_rule_to_make_target_needed_by'; |
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
50 |
my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET = 'make_no_rule_to_make_target'; |
177 | 51 |
|
52 |
sub process |
|
53 |
{ |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
54 |
my ($text, $logfile, $component, $mmp, $phase, $recipe, $file) = @_; |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
55 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
56 |
my $dumped = 1; |
177 | 57 |
|
58 |
my $category = $CATEGORY_RAPTORUNRECIPED; |
|
59 |
my $severity = ''; |
|
60 |
my $subcategory = ''; |
|
61 |
||
238
1040fbff0705
Remove redundant category no_rule_to_make_target for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
236
diff
changeset
|
62 |
if ($text =~ m,: warning: ignoring old commands for target,) |
177 | 63 |
{ |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
64 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
65 |
$dumped = 0; |
177 | 66 |
} |
67 |
elsif ($text =~ m,: warning: overriding commands for target,) |
|
68 |
{ |
|
69 |
$severity = $RaptorCommon::SEVERITY_MINOR; |
|
70 |
my $subcategory = $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET; |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
71 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
177 | 72 |
} |
238
1040fbff0705
Remove redundant category no_rule_to_make_target for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
236
diff
changeset
|
73 |
elsif ($text =~ m,^make(\.exe)?: \*\*\* No rule to make target .* needed by .*,) |
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
74 |
{ |
264
f10adc84543a
Raise level of severity for 'make: no rule to make target' errors to major as they are root causes
Dario Sestito <darios@symbian.org>
parents:
260
diff
changeset
|
75 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
76 |
my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGETNEEDEDBY; |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
77 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
78 |
} |
188
dbf40764ca6a
Match both make: and make.exe: in some unreciped regexp
Dario Sestito <darios@symbian.org>
parents:
186
diff
changeset
|
79 |
elsif ($text =~ m,^make(\.exe)?: \*\*\* No rule to make target .*,) |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
80 |
{ |
264
f10adc84543a
Raise level of severity for 'make: no rule to make target' errors to major as they are root causes
Dario Sestito <darios@symbian.org>
parents:
260
diff
changeset
|
81 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
82 |
my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET; |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
83 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
84 |
} |
232
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
85 |
elsif ($text =~ m,^make(\.exe)?: \*\*\* .* Error \d,) |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
86 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
87 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
88 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
89 |
} |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
90 |
elsif ($text =~ m,^make(\.exe)?: Target .* not remade because of errors,) |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
91 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
92 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
93 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
94 |
} |
188
dbf40764ca6a
Match both make: and make.exe: in some unreciped regexp
Dario Sestito <darios@symbian.org>
parents:
186
diff
changeset
|
95 |
elsif ($text =~ m,^make(\.exe)?: Nothing to be done for .*,) |
177 | 96 |
{ |
97 |
# don't dump |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
98 |
$dumped = 0; |
177 | 99 |
} |
100 |
elsif ($text =~ m,^(true|false)$,) |
|
101 |
{ |
|
102 |
# don't dump |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
103 |
$dumped = 0; |
177 | 104 |
} |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
105 |
elsif ($text =~ m,win32/cygwin/bin/cp\.exe,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
106 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
107 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
108 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
109 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
110 |
elsif ($text =~ m,epoc32/tools/svgtbinencode\.exe,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
111 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
112 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
113 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
114 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
115 |
elsif ($text =~ m,win32/cygwin/bin/chmod\.exe a\+rw,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
116 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
117 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
118 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
119 |
} |
232
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
120 |
elsif ($text =~ m,^make(\.exe)?: \*\*\* Waiting for unfinished jobs\.\.\.\.,) |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
121 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
122 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
123 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
124 |
} |
177 | 125 |
else # log everything by default |
126 |
{ |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
127 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
177 | 128 |
} |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
129 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
130 |
return $dumped; |
177 | 131 |
} |
132 |
||
133 |
sub on_start_buildlog |
|
134 |
{ |
|
135 |
RaptorCommon::init(); |
|
136 |
} |
|
137 |
||
138 |
sub on_chars_buildlog |
|
139 |
{ |
|
140 |
my ($ch) = @_; |
|
141 |
||
142 |
#print "on_chars_buildlog\n"; |
|
143 |
||
144 |
if ($store_chars) |
|
145 |
{ |
|
146 |
$characters .= $ch->{Data}; |
|
147 |
||
148 |
#print "characters is now -->$characters<--\n"; |
|
149 |
} |
|
150 |
} |
|
151 |
||
152 |
sub on_end_buildlog_subtag |
|
153 |
{ |
|
154 |
$store_chars = 1; |
|
155 |
} |
|
156 |
||
157 |
sub process_characters |
|
158 |
{ |
|
159 |
#print "process_characters\n"; |
|
160 |
||
161 |
$characters =~ s,^[\r\n]*,,; |
|
162 |
$characters =~ s,[\r\n]*$,,; |
|
163 |
||
164 |
#print "characters is -->$characters<--\n"; |
|
165 |
||
166 |
my @lines = split(/[\r\n]/, $characters); |
|
167 |
for my $line (@lines) |
|
168 |
{ |
|
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
169 |
my $package = ''; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
170 |
my $guessed_bldinf = ''; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
171 |
# if bldinf attribute is not available then heuristically attempt to determine the package |
260
09b83ca8e0cf
Revert to version 236 as 237 breaks the parser
Dario Sestito <darios@symbian.org>
parents:
259
diff
changeset
|
172 |
if ($line =~ m,.*?([/\\]sf[/\\](os|mw|app|tools|ostools|adaptation)[/\\][a-zA-Z]+[/\\]?),s) |
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
173 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
174 |
$guessed_bldinf = "$1... (guessed)"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
175 |
} |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
176 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
177 |
if ($guessed_bldinf) |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
178 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
179 |
$::allbldinfs->{$guessed_bldinf} = 1; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
180 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
181 |
# normalize bldinf path |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
182 |
$guessed_bldinf = lc($guessed_bldinf); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
183 |
$guessed_bldinf =~ s,^[A-Za-z]:,,; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
184 |
$guessed_bldinf =~ s,[\\],/,g; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
185 |
|
260
09b83ca8e0cf
Revert to version 236 as 237 breaks the parser
Dario Sestito <darios@symbian.org>
parents:
259
diff
changeset
|
186 |
if ($guessed_bldinf =~ m,/((os|mw|app|tools|ostools|adaptation)/[a-zA-Z]+),) |
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
187 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
188 |
$package = $1; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
189 |
$package =~ s,/,_,; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
190 |
} |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
191 |
} |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
192 |
|
177 | 193 |
if ($line =~ m,[^\s^\r^\n],) |
194 |
{ |
|
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
195 |
$filename = "$::raptorbitsdir/raptor_unreciped.txt"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
196 |
$filename = "$::raptorbitsdir/$package.txt" if ($package); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
197 |
my $filenamewnopath = "raptor_unreciped.txt"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
198 |
$filenamewnopath = "$package.txt" if ($package); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
199 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
200 |
if (!-f$filename) |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
201 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
202 |
print "Writing file $filename\n"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
203 |
open(FILE, ">$filename"); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
204 |
close(FILE); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
205 |
} |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
206 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
207 |
my $dumped = process($line, $::current_log_file, $guessed_bldinf, '', '', '', $filenamewnopath); |
177 | 208 |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
209 |
if ($dumped) |
177 | 210 |
{ |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
211 |
open(FILE, ">>$filename"); |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
212 |
print FILE "---failure_item_$::failure_item_number\---\n"; |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
213 |
print FILE "$line\n\n"; |
177 | 214 |
close(FILE); |
215 |
} |
|
216 |
} |
|
217 |
} |
|
218 |
||
219 |
$characters = ''; |
|
220 |
$store_chars = 0; |
|
221 |
} |
|
222 |
||
223 |
sub on_start_buildlog_subtag |
|
224 |
{ |
|
225 |
#print "on_start_buildlog_subtag\n"; |
|
226 |
||
227 |
process_characters(); |
|
228 |
} |
|
229 |
||
230 |
sub on_end_buildlog |
|
231 |
{ |
|
232 |
process_characters(); |
|
233 |
} |
|
234 |
||
235 |
||
236 |
1; |