--verbose \
-m integration \
--distribution ${{ matrix.distro }} \
+ $([ "${{ matrix.distro }}" = "debian" ] && echo --release=unstable) \
+ $([ "${{ matrix.tools }}" = "debian" ] && echo --tools-tree-release=unstable) \
--tools-tree-distribution ${{ matrix.tools }} \
tests/
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+ToolsTreeDistribution=debian
+
+[Host]
+@ToolsTreeRelease=unstable
Distribution=debian
[Distribution]
+@Release=unstable
Repositories=non-free-firmware
[Content]
distribution: Distribution
release: str
tools_tree_distribution: Optional[Distribution]
+ tools_tree_release: Optional[str]
debug_shell: bool
def __init__(self, config: Config, options: Sequence[PathString] = []) -> None:
if self.config.tools_tree_distribution
else []
),
+ *(["--tools-tree-release", self.config.tools_tree_release] if self.config.tools_tree_release else []),
*self.options,
*options,
"--output-dir", self.output_dir,
type=Distribution,
choices=[Distribution(d) for d in Distribution.values()],
)
+ parser.addoption(
+ "--tools-tree-release",
+ metavar="RELEASE",
+ help="Use the given tools tree release instead of the default one",
+ )
parser.addoption(
"--debug-shell",
help="Pass --debug-shell when running mkosi",
distribution=distribution,
release=release,
tools_tree_distribution=cast(Distribution, request.config.getoption("--tools-tree-distribution")),
+ tools_tree_release=request.config.getoption("--tools-tree-release"),
debug_shell=request.config.getoption("--debug-shell"),
)