author | mikek |
Wed, 28 Apr 2010 11:10:24 +0100 | |
changeset 247 | b836184892c6 |
parent 238 | 1040fbff0705 |
child 252 | f593b7acdb37 |
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: |
|
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_IGNORINGOLDCOMMANDSFORTARGET = 'ignoring_old_commands_for_target'; |
|
46 |
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
|
47 |
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
|
48 |
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
|
49 |
my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET = 'make_no_rule_to_make_target'; |
177 | 50 |
|
51 |
sub process |
|
52 |
{ |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
53 |
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
|
54 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
55 |
my $dumped = 1; |
177 | 56 |
|
57 |
my $category = $CATEGORY_RAPTORUNRECIPED; |
|
58 |
my $severity = ''; |
|
59 |
my $subcategory = ''; |
|
60 |
||
238
1040fbff0705
Remove redundant category no_rule_to_make_target for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
236
diff
changeset
|
61 |
if ($text =~ m,: warning: ignoring old commands for target,) |
177 | 62 |
{ |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
63 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
64 |
$dumped = 0; |
177 | 65 |
} |
66 |
elsif ($text =~ m,: warning: overriding commands for target,) |
|
67 |
{ |
|
68 |
$severity = $RaptorCommon::SEVERITY_MINOR; |
|
69 |
my $subcategory = $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET; |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
70 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
177 | 71 |
} |
238
1040fbff0705
Remove redundant category no_rule_to_make_target for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
236
diff
changeset
|
72 |
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
|
73 |
{ |
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
74 |
$severity = $RaptorCommon::SEVERITY_MINOR; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
75 |
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
|
76 |
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
|
77 |
} |
188
dbf40764ca6a
Match both make: and make.exe: in some unreciped regexp
Dario Sestito <darios@symbian.org>
parents:
186
diff
changeset
|
78 |
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
|
79 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
80 |
$severity = $RaptorCommon::SEVERITY_MINOR; |
182
d7b846505d9e
Add more categories for unreciped failures
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
81 |
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
|
82 |
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
|
83 |
} |
232
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
84 |
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
|
85 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
86 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
87 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
88 |
} |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
89 |
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
|
90 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
91 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
92 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
93 |
} |
188
dbf40764ca6a
Match both make: and make.exe: in some unreciped regexp
Dario Sestito <darios@symbian.org>
parents:
186
diff
changeset
|
94 |
elsif ($text =~ m,^make(\.exe)?: Nothing to be done for .*,) |
177 | 95 |
{ |
96 |
# don't dump |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
97 |
$dumped = 0; |
177 | 98 |
} |
99 |
elsif ($text =~ m,^(true|false)$,) |
|
100 |
{ |
|
101 |
# don't dump |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
102 |
$dumped = 0; |
177 | 103 |
} |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
104 |
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
|
105 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
106 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
107 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
108 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
109 |
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
|
110 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
111 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
112 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
113 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
114 |
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
|
115 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
116 |
# don't dump |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
117 |
$dumped = 0; |
185
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
182
diff
changeset
|
118 |
} |
232
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
119 |
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
|
120 |
{ |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
121 |
# don't dump |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
122 |
$dumped = 0; |
0244765a8d6f
Add heuristic determination of package for Raptor errors and warnings
Dario Sestito <darios@symbian.org>
parents:
188
diff
changeset
|
123 |
} |
177 | 124 |
else # log everything by default |
125 |
{ |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
126 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
177 | 127 |
} |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
128 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
129 |
return $dumped; |
177 | 130 |
} |
131 |
||
132 |
sub on_start_buildlog |
|
133 |
{ |
|
134 |
RaptorCommon::init(); |
|
135 |
} |
|
136 |
||
137 |
sub on_chars_buildlog |
|
138 |
{ |
|
139 |
my ($ch) = @_; |
|
140 |
||
141 |
#print "on_chars_buildlog\n"; |
|
142 |
||
143 |
if ($store_chars) |
|
144 |
{ |
|
145 |
$characters .= $ch->{Data}; |
|
146 |
||
147 |
#print "characters is now -->$characters<--\n"; |
|
148 |
} |
|
149 |
} |
|
150 |
||
151 |
sub on_end_buildlog_subtag |
|
152 |
{ |
|
153 |
$store_chars = 1; |
|
154 |
} |
|
155 |
||
156 |
sub process_characters |
|
157 |
{ |
|
158 |
#print "process_characters\n"; |
|
159 |
||
160 |
$characters =~ s,^[\r\n]*,,; |
|
161 |
$characters =~ s,[\r\n]*$,,; |
|
162 |
||
163 |
#print "characters is -->$characters<--\n"; |
|
164 |
||
165 |
my @lines = split(/[\r\n]/, $characters); |
|
166 |
for my $line (@lines) |
|
167 |
{ |
|
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
168 |
my $package = ''; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
169 |
my $guessed_bldinf = ''; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
170 |
# if bldinf attribute is not available then heuristically attempt to determine the package |
236
8a3d46cfe8b5
Fix heuristic matches tool path instead of file path
Dario Sestito <darios@symbian.org>
parents:
233
diff
changeset
|
171 |
if ($line =~ m,.*?([/\\]sf[/\\](os|mw|app|tools|ostools|adaptation)[/\\][^/^\\]*[/\\]),s) |
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
172 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
173 |
$guessed_bldinf = "$1... (guessed)"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
174 |
} |
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 |
if ($guessed_bldinf) |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
177 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
178 |
$::allbldinfs->{$guessed_bldinf} = 1; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
179 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
180 |
# normalize bldinf path |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
181 |
$guessed_bldinf = lc($guessed_bldinf); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
182 |
$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
|
183 |
$guessed_bldinf =~ s,[\\],/,g; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
184 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
185 |
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:
232
diff
changeset
|
186 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
187 |
$package = $1; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
188 |
$package =~ s,/,_,; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
189 |
} |
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 |
|
177 | 192 |
if ($line =~ m,[^\s^\r^\n],) |
193 |
{ |
|
233
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
194 |
$filename = "$::raptorbitsdir/raptor_unreciped.txt"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
195 |
$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
|
196 |
my $filenamewnopath = "raptor_unreciped.txt"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
197 |
$filenamewnopath = "$package.txt" if ($package); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
198 |
|
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
199 |
if (!-f$filename) |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
200 |
{ |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
201 |
print "Writing file $filename\n"; |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
202 |
open(FILE, ">$filename"); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
203 |
close(FILE); |
cf1d34408de3
Add heuristic determination of package for Raptor unreciped text
Dario Sestito <darios@symbian.org>
parents:
232
diff
changeset
|
204 |
} |
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 |
my $dumped = process($line, $::current_log_file, $guessed_bldinf, '', '', '', $filenamewnopath); |
177 | 207 |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
208 |
if ($dumped) |
177 | 209 |
{ |
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
210 |
open(FILE, ">>$filename"); |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
211 |
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
|
212 |
print FILE "$line\n\n"; |
177 | 213 |
close(FILE); |
214 |
} |
|
215 |
} |
|
216 |
} |
|
217 |
||
218 |
$characters = ''; |
|
219 |
$store_chars = 0; |
|
220 |
} |
|
221 |
||
222 |
sub on_start_buildlog_subtag |
|
223 |
{ |
|
224 |
#print "on_start_buildlog_subtag\n"; |
|
225 |
||
226 |
process_characters(); |
|
227 |
} |
|
228 |
||
229 |
sub on_end_buildlog |
|
230 |
{ |
|
231 |
process_characters(); |
|
232 |
} |
|
233 |
||
234 |
||
235 |
1; |