Export the pinned driver for services built without a path, and resolve a runfiles SE_MANAGER_PATH.
(config)
| 263 | |
| 264 | |
| 265 | def pytest_configure(config): |
| 266 | """Export the pinned driver for services built without a path, and resolve a runfiles SE_MANAGER_PATH.""" |
| 267 | executable = config.option.executable |
| 268 | driver = next((d for d in config.option.drivers or [] if d.lower() in _DRIVER_PATH_ENV_KEYS), None) |
| 269 | if driver and executable: |
| 270 | os.environ[_DRIVER_PATH_ENV_KEYS[driver.lower()]] = _resolve_bazel_path(executable).strip("'") |
| 271 | manager = os.environ.get("SE_MANAGER_PATH") |
| 272 | if manager and not Path(manager).exists() and Runfiles is not None: |
| 273 | os.environ["SE_MANAGER_PATH"] = Runfiles.Create().Rlocation(manager) |
| 274 | |
| 275 | |
| 276 | def get_extensions_location(): |
nothing calls this directly
no test coverage detected