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