Workflow check base class.
Definition at line 83 of file Tools/WorkflowTestRunner/python/Test.py.
◆ __init__()
None python.Test.WorkflowCheck.__init__ |
( |
|
self, |
|
|
TestSetup |
setup |
|
) |
| |
◆ reference_file()
Optional[Path] python.Test.WorkflowCheck.reference_file |
( |
|
self, |
|
|
"WorkflowTest" |
test, |
|
|
str |
file_name |
|
) |
| |
Definition at line 90 of file Tools/WorkflowTestRunner/python/Test.py.
90 def reference_file(self, test:
"WorkflowTest", file_name: str) -> Optional[Path]:
91 reference_path: Path = test.reference_path
92 reference_file = reference_path / file_name
95 if self.setup.validation_only:
97 reference_revision = references_map[f
"{test.ID}"]
98 cvmfs_path = Path(references_CVMFS_path)
99 rel_path = Path(self.setup.release_ID) / test.ID / reference_revision
100 reference_path = cvmfs_path / rel_path
101 reference_file = reference_path / file_name
103 if not reference_path.exists():
104 self.logger.
error(f
"CVMFS reference location {reference_path} does not exist!")
107 if references_override_url
is not None:
110 url = references_override_url
111 if not url.endswith(
"/"): url +=
"/"
112 url +=
str(rel_path / file_name)
113 self.logger.
info(
"Checking for reference override at %s", url)
114 if requests.head(url).ok:
115 reference_file = Path.cwd() / f
"reference_{file_name}"
116 self.logger.
info(
"Downloading reference from %s to %s", url, reference_file)
117 r = requests.get(url, stream=
True)
118 with reference_file.open(
'wb')
as f:
119 for chunk
in r.iter_content(chunk_size=1024):
123 self.logger.
info(
"No reference override found")
125 return reference_file
◆ logger
python.Test.WorkflowCheck.logger |
◆ setup
python.Test.WorkflowCheck.setup |
The documentation for this class was generated from the following file: