Get path to built profiler binary
(self)
| 174 | return False |
| 175 | |
| 176 | def get_binary_path(self) -> Path: |
| 177 | """Get path to built profiler binary""" |
| 178 | # Both Docker and local builds use the same .build/meson-<mode>/ directory |
| 179 | # Docker mounts the host's .build directory, so binaries are in the same location |
| 180 | base_path = f".build/meson-{self.build_mode}/tests/profile/{self.test_name}" |
| 181 | |
| 182 | # Try without extension first (Linux/Docker) |
| 183 | binary_path = Path(base_path) |
| 184 | if binary_path.exists(): |
| 185 | return binary_path |
| 186 | |
| 187 | # Try with .exe extension (Windows local builds) |
| 188 | binary_path_exe = Path(f"{base_path}.exe") |
| 189 | if binary_path_exe.exists(): |
| 190 | return binary_path_exe |
| 191 | |
| 192 | # Return the expected path even if it doesn't exist (for error messages) |
| 193 | return Path(base_path) |
| 194 | |
| 195 | def _run_with_timeout( |
| 196 | self, cmd: list[str], timeout_seconds: int = 120 |
no outgoing calls
no test coverage detected