| 79 | |
| 80 | |
| 81 | class ArchiverSetup: |
| 82 | EXE: str = None # python source based |
| 83 | FORK_DEFAULT = False |
| 84 | BORG_EXES: list[str] = [] |
| 85 | |
| 86 | def __init__(self): |
| 87 | self.archiver = None |
| 88 | self.tmpdir: str | None = None |
| 89 | self.repository_path: str | None = None |
| 90 | self.repository_location: str | None = None |
| 91 | self.input_path: str | None = None |
| 92 | self.output_path: str | None = None |
| 93 | self.keys_path: str | None = None |
| 94 | self.cache_path: str | None = None |
| 95 | self.exclude_file_path: str | None = None |
| 96 | self.patterns_file_path: str | None = None |
| 97 | |
| 98 | def get_kind(self) -> str: |
| 99 | if self.repository_location.startswith("ssh://__testsuite__"): |
| 100 | return "remote" |
| 101 | elif self.EXE == "borg.exe": |
| 102 | return "binary" |
| 103 | else: |
| 104 | return "local" |
| 105 | |
| 106 | |
| 107 | @pytest.fixture() |