]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
tests: Drop unused tools field
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 10 Apr 2025 13:25:51 +0000 (15:25 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 10 Apr 2025 14:32:26 +0000 (16:32 +0200)
tests/__init__.py
tests/conftest.py

index f2e3989b598dd3c20624b69cd5ebf93c88c13b89..7cdbce243d03eb4d56dbaf52a1be1f6a4a25c0aa 100644 (file)
@@ -26,7 +26,6 @@ class ImageConfig:
     distribution: Distribution
     release: str
     debug_shell: bool
-    tools: Optional[Path]
 
 
 class Image:
@@ -67,7 +66,6 @@ class Image:
         return run(
             [
                 "python3", "-m", "mkosi",
-                *(["--tools-tree", os.fspath(self.config.tools)] if self.config.tools else []),
                 "--debug",
                 *options,
                 verb,
index f1e7a76477f8623fd52cc0bd8b5258bb32aee871..70dd4d4cd7a643c913e8e616cab5c18dd6b64b4f 100644 (file)
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 from collections.abc import Iterator
-from pathlib import Path
 from typing import Any, cast
 
 import pytest
@@ -50,7 +49,6 @@ def config(request: Any) -> ImageConfig:
         distribution=distribution,
         release=release,
         debug_shell=request.config.getoption("--debug-shell"),
-        tools=p if (p := Path("mkosi.tools")).exists() else None,
     )