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