For use with find_binary() to check if binaries exist in the tools
tree.
distribution: Distribution
release: str
debug_shell: bool
+ tools: Optional[Path]
class Image:
return run(
[
"python3", "-m", "mkosi",
+ *(["--tools-tree", os.fspath(self.config.tools)] if self.config.tools else []),
"--debug",
*options,
verb,
# SPDX-License-Identifier: LGPL-2.1-or-later
from collections.abc import Iterator
+from pathlib import Path
from typing import Any, cast
import pytest
distribution=distribution,
release=release,
debug_shell=request.config.getoption("--debug-shell"),
+ tools=p if (p := Path("mkosi.tools")).exists() else None,
)