Execute CheckLog looking for errors or warnings in a log file
 
Definition at line 245 of file CheckSteps.py.
◆ __init__()
      
        
          | def python.TrigValSteering.CheckSteps.CheckLogStep.__init__ | ( |  | self, | 
        
          |  |  |  | name | 
        
          |  | ) |  |  | 
      
 
Definition at line 248 of file CheckSteps.py.
  249         super(CheckLogStep, self).
__init__(name)
 
  250         self.executable = 
'check_log.py' 
  252         self.check_errors = 
True 
  253         self.check_warnings = 
False 
  254         self.config_file = 
None 
  255         self.args = 
'--showexcludestats' 
  258         self.auto_report_result = 
None 
  259         self.output_stream = 
None 
 
 
 
◆ configure()
      
        
          | def python.TrigValSteering.CheckSteps.CheckLogStep.configure | ( |  | self, | 
        
          |  |  |  | test | 
        
          |  | ) |  |  | 
      
 
Definition at line 261 of file CheckSteps.py.
  262         if self.config_file 
is None:
 
  263             if test.package_name == 
'TrigP1Test':
 
  264                 self.config_file = 
'checklogTrigP1Test.conf' 
  265             elif test.package_name == 
'TrigValTools':
 
  266                 self.config_file = 
'checklogTrigValTools.conf' 
  268                 self.config_file = 
'checklogTriggerTest.conf' 
  269         if self.log_file 
is None:
 
  270             if len(test.exec_steps) == 1:
 
  271                 self.log_file = test.exec_steps[0].name+
'.log' 
  273                 self.log_file = 
'athena.log' 
  274         if self.check_errors:
 
  275             self.args += 
' --errors' 
  276         if self.check_warnings:
 
  277             self.args += 
' --warnings' 
  279         errors_only = self.check_errors 
and not self.check_warnings
 
  280         if self.output_stream 
is None:
 
  281             self.output_stream = Step.OutputStream.FILE_AND_STDOUT 
if errors_only 
else Step.OutputStream.FILE_ONLY
 
  282         if self.auto_report_result 
is None:
 
  283             self.auto_report_result = errors_only
 
  284         if self.required 
is None:
 
  285             self.required = errors_only
 
  287         self.args += 
' --config {} {}'.
format(self.config_file, self.log_file)
 
  289         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)