From: Daan De Meyer Date: Fri, 13 Dec 2024 09:20:40 +0000 (+0000) Subject: tests: Build with --incremental=strict X-Git-Tag: v25~115^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3274%2Fhead;p=thirdparty%2Fmkosi.git tests: Build with --incremental=strict Let's require cached images to be present before running the integration tests. This makes sure the tests only need to build the output that they're testing and it also opens up the road for running tests in parallel in the future. --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7f024ec9..1f45362df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -217,6 +217,9 @@ jobs: --include mkosi-tools \ $( [[ ${{ matrix.tools }} == opensuse ]] && echo --package=grub2) + - name: Build image + run: mkosi --distribution ${{ matrix.distro }} -f + - name: Run integration tests run: | sudo --preserve-env \ diff --git a/tests/__init__.py b/tests/__init__.py index 5840b4ad3..9e5780e94 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -102,7 +102,7 @@ class Image: "--release", self.config.release, *(f"--kernel-command-line={i}" for i in kcl), "--force", - "--incremental", + "--incremental=strict", "--output-directory", self.output_dir, *(["--debug-shell"] if self.config.debug_shell else []), *options,