Execute CheckLog looking for errors or warnings in a log file
Definition at line 246 of file CheckSteps.py.
◆ __init__()
def python.TrigValSteering.CheckSteps.CheckLogStep.__init__ |
( |
|
self, |
|
|
|
name |
|
) |
| |
Definition at line 249 of file CheckSteps.py.
250 super(CheckLogStep, self).
__init__(name)
251 self.executable =
'check_log.py'
253 self.check_errors =
True
254 self.check_warnings =
False
255 self.config_file =
None
256 self.args =
'--showexcludestats'
259 self.auto_report_result =
None
260 self.output_stream =
None
◆ configure()
def python.TrigValSteering.CheckSteps.CheckLogStep.configure |
( |
|
self, |
|
|
|
test |
|
) |
| |
Definition at line 262 of file CheckSteps.py.
263 if self.config_file
is None:
264 if test.package_name ==
'TrigP1Test':
265 self.config_file =
'checklogTrigP1Test.conf'
266 elif test.package_name ==
'TrigValTools':
267 self.config_file =
'checklogTrigValTools.conf'
269 self.config_file =
'checklogTriggerTest.conf'
270 if self.log_file
is None:
271 if len(test.exec_steps) == 1:
272 self.log_file = test.exec_steps[0].name+
'.log'
274 self.log_file =
'athena.log'
275 if self.check_errors:
276 self.args +=
' --errors'
277 if self.check_warnings:
278 self.args +=
' --warnings'
280 errors_only = self.check_errors
and not self.check_warnings
281 if self.output_stream
is None:
282 self.output_stream = Step.OutputStream.FILE_AND_STDOUT
if errors_only
else Step.OutputStream.FILE_ONLY
283 if self.auto_report_result
is None:
284 self.auto_report_result = errors_only
285 if self.required
is None:
286 self.required = errors_only
288 self.args +=
' --config {} {}'.
format(self.config_file, self.log_file)
290 super(CheckLogStep, self).
configure(test)
◆ args
python.TrigValSteering.CheckSteps.CheckLogStep.args |
◆ auto_report_result
python.TrigValSteering.CheckSteps.CheckLogStep.auto_report_result |
◆ check_errors
python.TrigValSteering.CheckSteps.CheckLogStep.check_errors |
◆ check_warnings
python.TrigValSteering.CheckSteps.CheckLogStep.check_warnings |
◆ config_file
python.TrigValSteering.CheckSteps.CheckLogStep.config_file |
◆ executable
python.TrigValSteering.CheckSteps.CheckLogStep.executable |
◆ log_file
python.TrigValSteering.CheckSteps.CheckLogStep.log_file |
◆ output_stream
python.TrigValSteering.CheckSteps.CheckLogStep.output_stream |
◆ required
python.TrigValSteering.CheckSteps.CheckLogStep.required |
The documentation for this class was generated from the following file:
bool configure(asg::AnaToolHandle< ITrigGlobalEfficiencyCorrectionTool > &tool, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronEffToolsHandles, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronSFToolsHandles, ToolHandleArray< CP::IMuonTriggerScaleFactors > &muonToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonEffToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonSFToolsHandles, const std::string &triggers, const std::map< std::string, std::string > &legsPerTool, unsigned long nToys, bool debug)