author | timothy.murphy@nokia.com |
Mon, 24 May 2010 16:57:12 +0100 | |
branch | fix |
changeset 573 | e2b5644641c6 |
parent 452 | 80e69f7100f1 |
permissions | -rw-r--r-- |
451
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
1 |
# |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
2 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
3 |
# All rights reserved. |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
4 |
# This component and the accompanying materials are made available |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
6 |
# which accompanies this distribution, and is available |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
8 |
# |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
9 |
# Initial Contributors: |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
10 |
# Nokia Corporation - initial contribution. |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
11 |
# |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
12 |
# Contributors: |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
13 |
# |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
14 |
# Description: |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
15 |
# |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
16 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
17 |
from raptor_tests import SmokeTest |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
18 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
19 |
def run(): |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
20 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
21 |
t = SmokeTest() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
22 |
t.description = "Test the passing of parameters to log filters" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
23 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
24 |
command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5_urel --filters=" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
25 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
26 |
# no parameters means count all tags |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
27 |
t.name = "filter_params_all_tags" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
28 |
t.command = command + "FilterTagCounter" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
29 |
t.mustmatch_singleline = [ |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
30 |
"^info \d+ \d+", |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
31 |
"^whatlog \d+ \d+", |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
32 |
"^clean \d+ \d+" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
33 |
] |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
34 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
35 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
36 |
# empty parameter lists are valid |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
37 |
t.name = "filter_params_all_tags2" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
38 |
t.command = command + "FilterTagCounter[]" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
39 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
40 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
41 |
# parameters mean report only those tags |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
42 |
t.name = "filter_params_info" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
43 |
t.command = command + "FilterTagCounter[info]" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
44 |
t.mustmatch_singleline = [ |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
45 |
"^info \d+ \d+" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
46 |
] |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
47 |
t.mustnotmatch_singleline = [ |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
48 |
"^whatlog \d+ \d+", |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
49 |
"^clean \d+ \d+" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
50 |
] |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
51 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
52 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
53 |
# multiple parameters are valid |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
54 |
t.name = "filter_params_info_clean" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
55 |
t.command = command + "FilterTagCounter[info,clean]" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
56 |
t.mustmatch_singleline = [ |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
57 |
"^info \d+ \d+", |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
58 |
"^clean \d+ \d+" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
59 |
] |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
60 |
t.mustnotmatch_singleline = [ |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
61 |
"^whatlog \d+ \d+" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
62 |
] |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
63 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
64 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
65 |
# using the same filter with different parameters is valid |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
66 |
t.name = "filter_params_info_clean2" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
67 |
t.command = command + "FilterTagCounter[info],FilterTagCounter[clean]" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
68 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
69 |
|
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
70 |
# using the same filter with the same parameters is valid too |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
71 |
t.name = "filter_params_info_clean3" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
72 |
t.command = command + "FilterTagCounter[info,clean],FilterTagCounter[info,clean]" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
73 |
t.run() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
74 |
|
452
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
75 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
76 |
# parameters must work with the sbs_filter script as well |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
77 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
78 |
command = "sbs_filter --filters=%s < smoke_suite/test_resources/logexamples/filter_component.log" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
79 |
t.logfileOption = lambda :"" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
80 |
t.makefileOption = lambda :"" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
81 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
82 |
# should still work with no parameters |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
83 |
t.name = "sbs_filter_no_params" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
84 |
t.command = command % "FilterComp" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
85 |
t.mustmatch_singleline = [ |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
86 |
] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
87 |
t.mustnotmatch_singleline = [ |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
88 |
"[<>]" # no elements should be printed at all as no bld.inf is selected |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
89 |
] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
90 |
t.run() |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
91 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
92 |
# should work with an empty parameter list |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
93 |
t.name = "sbs_filter_no_params2" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
94 |
t.command = command % "FilterComp[]" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
95 |
t.run() |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
96 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
97 |
# with a parameter |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
98 |
t.name = "sbs_filter_one_param" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
99 |
t.command = command % "FilterComp[email]" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
100 |
t.stdout = [ |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
101 |
"<error bldinf='y:/src/email/bld.inf'>email error #1</error>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
102 |
"<error bldinf='y:/src/email/bld.inf'>email error #2</error>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
103 |
"<warning bldinf='y:/src/email/bld.inf'>email warning #1</warning>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
104 |
"<warning bldinf='y:/src/email/bld.inf'>email warning #2</warning>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
105 |
"<whatlog bldinf='y:/src/email/bld.inf' config='armv5_urel' mmp='y:/src/email/a.mmp'>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
106 |
"<build>/epoc32/data/email_1</build>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
107 |
"<build>/epoc32/data/email_2</build>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
108 |
"</whatlog>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
109 |
"<recipe bldinf='y:/src/email/bld.inf' name='dummy'>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
110 |
"+ make_email", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
111 |
"email was made fine", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
112 |
"<status exit='ok'></status>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
113 |
"</recipe>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
114 |
"<fake bldinf='y:src/email/bld.inf'>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
115 |
" <foo>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
116 |
" <bar>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
117 |
" <fb>fb email</fb>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
118 |
" </bar>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
119 |
" </foo>", |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
120 |
"</fake>" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
121 |
] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
122 |
t.mustmatch_singleline = [] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
123 |
t.mustnotmatch_singleline = [] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
124 |
t.warnings = 2 |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
125 |
t.errors = 2 |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
126 |
t.run() |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
127 |
|
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
128 |
# with multiple filters |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
129 |
t.name = "sbs_filter_multi" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
130 |
t.command = command % "FilterComp[txt],FilterTagCounter[file,recipe]" |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
131 |
t.stdout = [] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
132 |
t.mustmatch_singleline = [ "txt", "^file \d+", "^recipe \d+" ] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
133 |
t.mustnotmatch_singleline = [ "email" ] |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
134 |
t.warnings = 2 |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
135 |
t.errors = 0 |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
136 |
t.run() |
80e69f7100f1
new FilterComp log filter
Richard Taylor <richard.i.taylor@nokia.com>
parents:
451
diff
changeset
|
137 |
|
451
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
138 |
t.name = "filter_params" |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
139 |
t.print_result() |
153129bf777e
pass optional parameters to log filters from the command line
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
140 |
return t |