rename var holding DirManager
This commit is contained in:
parent
0b7057135f
commit
a2718084bc
1 changed files with 5 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ class Runner:
|
||||||
self.config: dict[str, str] = dotenv_values(dotenv_path) # type: ignore
|
self.config: dict[str, str] = dotenv_values(dotenv_path) # type: ignore
|
||||||
self.output_dir = output_dir
|
self.output_dir = output_dir
|
||||||
self.session_id = session_id
|
self.session_id = session_id
|
||||||
self.dir_manager = DirManager(output_dir, session_id)
|
self.DIRS = DirManager(output_dir, session_id)
|
||||||
|
|
||||||
ic(f"creating instance of {self.__class__.__name__}")
|
ic(f"creating instance of {self.__class__.__name__}")
|
||||||
assert self.test_dir_name is not None
|
assert self.test_dir_name is not None
|
||||||
|
|
@ -63,7 +63,7 @@ class Runner:
|
||||||
command_arguments.append(self.session_id)
|
command_arguments.append(self.session_id)
|
||||||
|
|
||||||
# artifacts dir
|
# artifacts dir
|
||||||
output = self.dir_manager.RESULTS / full_test_path.stem
|
output = self.DIRS.RESULTS / full_test_path.stem
|
||||||
command_arguments.append("--output")
|
command_arguments.append("--output")
|
||||||
command_arguments.append(str(output))
|
command_arguments.append(str(output))
|
||||||
|
|
||||||
|
|
@ -94,11 +94,11 @@ class Runner:
|
||||||
self._create_complete_file()
|
self._create_complete_file()
|
||||||
|
|
||||||
def _create_complete_file(self):
|
def _create_complete_file(self):
|
||||||
file_path = self.dir_manager.RESULTS / self.name
|
file_path = self.DIRS.RESULTS / self.name
|
||||||
with open(file_path, "w") as _:
|
with open(file_path, "w") as _:
|
||||||
pass # pass does nothing, so the file remains empty
|
pass # create empty file
|
||||||
|
|
||||||
def _check_dependencies(self):
|
def _check_dependencies(self):
|
||||||
finished_tests = [result.name for result in self.dir_manager.RESULTS.glob("*")]
|
finished_tests = [result.name for result in self.DIRS.RESULTS.glob("*")]
|
||||||
for dependencie in self.dependencies:
|
for dependencie in self.dependencies:
|
||||||
assert dependencie in finished_tests
|
assert dependencie in finished_tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue