ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.Test.TestSetup Class Reference
Collaboration diagram for python.Test.TestSetup:

Public Member Functions

None __init__ (self, Logger logger)
 
None setup_release (self, reference=None, validation=None)
 

Public Attributes

 logger
 
 validation_run_path
 
 reference_run_path
 
 diff_rules_path
 
 unique_ID
 
 disable_release_setup
 
 validation_only
 
 run_only
 
 checks_only
 
 release_reference
 
 release_validation
 
 release_ID
 
 parallel_execution
 
 disable_output_checks
 
 custom_threads
 
 detailed_comparison
 

Detailed Description

Test setup.

Definition at line 15 of file Tools/WorkflowTestRunner/python/Test.py.

Constructor & Destructor Documentation

◆ __init__()

None python.Test.TestSetup.__init__ (   self,
Logger  logger 
)

Definition at line 18 of file Tools/WorkflowTestRunner/python/Test.py.

18  def __init__(self, logger: Logger) -> None:
19  self.logger = logger
20  self.validation_run_path = Path.cwd()
21  self.reference_run_path = Path("/tmp")
22  self.diff_rules_path = None
23  self.unique_ID = str(uuid4())
24  self.disable_release_setup = False
25  self.validation_only = False
26  self.run_only = False
27  self.checks_only = False
28  self.release_reference = ""
29  self.release_validation = ""
30  self.release_ID = "main" # The following is not flexible enough, can probably be hardcoded: environ["AtlasVersion"][0:4]
31  self.parallel_execution = False
32  self.disable_output_checks = False
33  self.custom_threads = None
34  self.detailed_comparison = False
35 

Member Function Documentation

◆ setup_release()

None python.Test.TestSetup.setup_release (   self,
  reference = None,
  validation = None 
)

Definition at line 36 of file Tools/WorkflowTestRunner/python/Test.py.

36  def setup_release(self, reference=None, validation=None) -> None:
37  if reference and validation:
38  self.release_reference = reference
39  self.release_validation = validation
40  self.logger.info(f"WARNING: You have specified a dedicated release as reference {reference} and as validation {validation} release.")
41  self.logger.info("Your local setup area will not be considered!!!")
42  self.logger.info("this option is mainly designed for comparing release versions!!")
43  elif reference:
44  self.release_reference = reference
45  self.release_validation = ''
46  self.logger.info(f"You have specified a dedicated release as reference {reference}.")
47  else:
48  self.release_reference = get_release_setup(self.logger, self.disable_release_setup)
49  self.release_validation = self.release_reference
50  try:
51  list_changed_packages(self.logger, self.disable_release_setup)
52  except Exception:
53  self.logger.warning("Cannot list changed packages...\n")
54 
55 

Member Data Documentation

◆ checks_only

python.Test.TestSetup.checks_only

Definition at line 27 of file Tools/WorkflowTestRunner/python/Test.py.

◆ custom_threads

python.Test.TestSetup.custom_threads

Definition at line 33 of file Tools/WorkflowTestRunner/python/Test.py.

◆ detailed_comparison

python.Test.TestSetup.detailed_comparison

Definition at line 34 of file Tools/WorkflowTestRunner/python/Test.py.

◆ diff_rules_path

python.Test.TestSetup.diff_rules_path

Definition at line 22 of file Tools/WorkflowTestRunner/python/Test.py.

◆ disable_output_checks

python.Test.TestSetup.disable_output_checks

Definition at line 32 of file Tools/WorkflowTestRunner/python/Test.py.

◆ disable_release_setup

python.Test.TestSetup.disable_release_setup

Definition at line 24 of file Tools/WorkflowTestRunner/python/Test.py.

◆ logger

python.Test.TestSetup.logger

Definition at line 19 of file Tools/WorkflowTestRunner/python/Test.py.

◆ parallel_execution

python.Test.TestSetup.parallel_execution

Definition at line 31 of file Tools/WorkflowTestRunner/python/Test.py.

◆ reference_run_path

python.Test.TestSetup.reference_run_path

Definition at line 21 of file Tools/WorkflowTestRunner/python/Test.py.

◆ release_ID

python.Test.TestSetup.release_ID

Definition at line 30 of file Tools/WorkflowTestRunner/python/Test.py.

◆ release_reference

python.Test.TestSetup.release_reference

Definition at line 28 of file Tools/WorkflowTestRunner/python/Test.py.

◆ release_validation

python.Test.TestSetup.release_validation

Definition at line 29 of file Tools/WorkflowTestRunner/python/Test.py.

◆ run_only

python.Test.TestSetup.run_only

Definition at line 26 of file Tools/WorkflowTestRunner/python/Test.py.

◆ unique_ID

python.Test.TestSetup.unique_ID

Definition at line 23 of file Tools/WorkflowTestRunner/python/Test.py.

◆ validation_only

python.Test.TestSetup.validation_only

Definition at line 25 of file Tools/WorkflowTestRunner/python/Test.py.

◆ validation_run_path

python.Test.TestSetup.validation_run_path

Definition at line 20 of file Tools/WorkflowTestRunner/python/Test.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
python.Helpers.get_release_setup
str get_release_setup(Logger logger, no_setup=False)
Definition: Tools/WorkflowTestRunner/python/Helpers.py:9
python.Helpers.list_changed_packages
None list_changed_packages(Logger logger, no_setup=False)
Definition: Tools/WorkflowTestRunner/python/Helpers.py:41
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11