(self, *, binary, binary_cache_suffix=None)
| 130 | raise Exception(f'Error during executing {full_cmd}') |
| 131 | |
| 132 | def _get_cached_binary_name(self, *, binary, binary_cache_suffix=None): |
| 133 | binary_path = os.path.join(self.build_dir, f'{binary}_{self.branch}') |
| 134 | |
| 135 | if self.hash is not None: |
| 136 | binary_path += f'_{self.hash}' |
| 137 | |
| 138 | if binary_cache_suffix is not None: |
| 139 | binary_path += f'_{binary_cache_suffix}' |
| 140 | |
| 141 | return binary_path |
| 142 | |
| 143 | def checkout_to_init_state(self): |
| 144 | self.checkout(branch=self.init_branch, hash=self.init_hash) |