]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Hard code cache directory in test framework
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 17 Mar 2024 14:58:34 +0000 (15:58 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 17 Mar 2024 14:59:00 +0000 (15:59 +0100)
tests/__init__.py

index 3b5b59ccefa95f0c438569aa0f54a98c7ee08096..74e05694f06c12160d203df851f1b8dedd6e5389 100644 (file)
@@ -81,6 +81,9 @@ class Image:
             *self.options,
             *options,
             "--output-dir", self.output_dir,
+            # Some tests ignore the default image config but we still want them to reuse the cache directory for the
+            # tools tree cache.
+            "--cache-dir", "mkosi.cache",
             *(f"--kernel-command-line={i}" for i in kcl),
             "--qemu-vsock=yes",
             verb,