author | Dario Sestito <darios@symbian.org> |
Thu, 20 May 2010 14:13:31 +0100 | |
changeset 264 | f10adc84543a |
parent 258 | 08436a227940 |
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:
186
diff
changeset
|
11 |
# Dario Sestito <darios@symbian.org> |
177 | 12 |
# |
13 |
# Description: |
|
14 |
# Common constants for the raptor parser suite |
|
15 |
||
16 |
package RaptorCommon; |
|
17 |
||
18 |
our $SEVERITY_CRITICAL = 'critical'; |
|
19 |
our $SEVERITY_MAJOR = 'major'; |
|
20 |
our $SEVERITY_MINOR = 'minor'; |
|
21 |
||
22 |
sub init |
|
23 |
{ |
|
24 |
my $filename = "$::raptorbitsdir/summary.csv"; |
|
25 |
if (!-f$filename) |
|
26 |
{ |
|
27 |
print "Writing summary file $filename\n"; |
|
28 |
open(SUMMARY, ">$filename"); |
|
29 |
close(SUMMARY); |
|
30 |
} |
|
31 |
} |
|
32 |
||
33 |
sub dump_fault |
|
34 |
{ |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
35 |
my ($category, $subcategory, $severity, $location, $component, $mmp, $phase, $recipe, $file) = @_; |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
36 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
37 |
$::failure_item_number++; |
177 | 38 |
|
39 |
open(SUMMARY, ">>$::raptorbitsdir/summary.csv"); |
|
186
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
177
diff
changeset
|
40 |
print SUMMARY "$category,$subcategory,$severity,$location,$component,$mmp,$phase,$recipe,$file,$::failure_item_number\n"; |
177 | 41 |
close(SUMMARY); |
42 |
} |
|
43 |
||
44 |
1; |