72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
+
-
+
|
<h3>Expire rules</h3>
Any rule can have a date set beyond which it will no longer be applied. This is intended to be used on ignore rules that are only intended to be temporarily applied. The date format is MM/DD/YYYY:
<verbatim>
(expect:ignore in "Body" < 99 "These are real but I want to ignore them for now" #/ERROR 1234/ expires: "02/04/2011")
</verbatim>
This kind of rule is best written as "< N" where N is more than you are ever likely to get of these that you want to ignore.
<h3>Values</h3>
Extract values from your logfile and apply simple rules for pass/fail checks.
Syntax is:
<verbatim>
(expect:value in section value tol comment_string regex [hook: hookname])
<verbatim>
</verbatim>
Example, extract a number following a string "Measured voltage output: " and compare it with 1.9 +/- 0.1. Call the hook "freq"
<verbatim>
(expect:value in "LogFileBody" 1.9 0.1 "Output voltage" #/Measured voltage output:\s*([\d\.\+\-e]+)v/ hook: "freq")
</verbatim>
|