Workflow test base class.
 
Definition at line 131 of file Tools/WorkflowTestRunner/python/Test.py.
◆ __init__()
Definition at line 134 of file Tools/WorkflowTestRunner/python/Test.py.
  134     def __init__(self, ID: str, run: WorkflowRun, type: WorkflowType, steps: List[str], setup: TestSetup) -> 
None:
 
  135         if not hasattr(self, 
"ID"):
 
  138         if not hasattr(self, 
"tag"):
 
  141         if not hasattr(self, 
"steps"):
 
  145             raise NotImplementedError(
"Command needs to be defined")
 
  147         if not hasattr(self, 
"output_checks"):
 
  148             self.output_checks = []
 
  150         if not hasattr(self, 
"digest_checks"):
 
  151             self.digest_checks = []
 
  153         if not hasattr(self, 
"skip_performance_checks"):
 
  154             self.skip_performance_checks = 
False 
  159         self.logger = setup.logger
 
  160         self.validation_path: Path = self.setup.validation_run_path / f
"run_{self.ID}" 
  161         self.reference_path: Path = self.setup.reference_run_path / f
"run_{self.ID}" 
 
 
◆ run_checks()
      
        
          | bool python.Test.WorkflowTest.run_checks | ( |  | self, | 
        
          |  |  | List[WorkflowCheck] | performance_checks | 
        
          |  | ) |  |  | 
      
 
Definition at line 200 of file Tools/WorkflowTestRunner/python/Test.py.
  200     def run_checks(self, performance_checks: List[WorkflowCheck]) -> bool:
 
  201         self.logger.
info(
"-----------------------------------------------------")
 
  202         self.logger.
info(f
"----------- Post-processing of {self.ID} Test -----------")
 
  206         for check 
in self.digest_checks:
 
  207             result = check.run(self) 
and result
 
  210         if not self.setup.disable_output_checks:
 
  211             for check 
in self.output_checks:
 
  212                 result = check.run(self) 
and result
 
  214         if self.setup.validation_only 
or self.skip_performance_checks:
 
  218         for check 
in performance_checks:
 
  219             result = check.run(self) 
and result
 
 
 
◆ run_reference()
      
        
          | None python.Test.WorkflowTest.run_reference | ( |  | self | ) |  | 
      
 
Definition at line 163 of file Tools/WorkflowTestRunner/python/Test.py.
  163     def run_reference(self) -> None:
 
  164         self.logger.
info(f
"Running reference in rel {self.setup.release_reference}")
 
  165         self.logger.
info(f
"\"{self.command}\"")
 
  167         self.reference_path.
mkdir(parents=
True, exist_ok=
True)
 
  169         cmd = (f
"cd {self.reference_path};" 
  170                f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_reference} >& /dev/null;")
 
  171         cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1" 
  173         subprocess.call(cmd, shell=
True)
 
  175         self.logger.
info(f
"Finished clean in rel {self.setup.release_reference}")
 
  176         self.logger.
info(f
"\"{self.command}\"")
 
 
 
◆ run_validation()
      
        
          | None python.Test.WorkflowTest.run_validation | ( |  | self | ) |  | 
      
 
Definition at line 178 of file Tools/WorkflowTestRunner/python/Test.py.
  178     def run_validation(self) -> None:
 
  179         self.logger.
info(f
"Running validation in rel {self.setup.release_validation}")
 
  180         self.logger.
info(f
"\"{self.command}\"")
 
  182         self.validation_path.
mkdir(parents=
True, exist_ok=
True)
 
  184         cmd = f
"cd {self.validation_path};" 
  185         if self.setup.disable_release_setup 
or not self.setup.release_validation:
 
  187         elif "WorkDir_DIR" in environ:
 
  188             cmake_build_dir = environ[
"WorkDir_DIR"]
 
  189             cmd += (f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;" 
  190                     f
"source {cmake_build_dir}/setup.sh;")
 
  192             cmd += f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;" 
  193         cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1" 
  195         subprocess.call(cmd, shell=
True)
 
  197         self.logger.
info(f
"Finished validation in rel {self.setup.release_validation}")
 
  198         self.logger.
info(f
"\"{self.command}\"")
 
 
 
◆ digest_checks
      
        
          | python.Test.WorkflowTest.digest_checks | 
      
 
 
◆ ID
      
        
          | python.Test.WorkflowTest.ID | 
      
 
 
◆ logger
      
        
          | python.Test.WorkflowTest.logger | 
      
 
 
◆ output_checks
      
        
          | python.Test.WorkflowTest.output_checks | 
      
 
 
◆ run
      
        
          | python.Test.WorkflowTest.run | 
      
 
 
◆ setup
      
        
          | python.Test.WorkflowTest.setup | 
      
 
 
◆ skip_performance_checks
      
        
          | python.Test.WorkflowTest.skip_performance_checks | 
      
 
 
◆ steps
      
        
          | python.Test.WorkflowTest.steps | 
      
 
 
◆ tag
      
        
          | python.Test.WorkflowTest.tag | 
      
 
 
◆ type
      
        
          | python.Test.WorkflowTest.type | 
      
 
 
The documentation for this class was generated from the following file: