From bddfcd96298255c897982e8f21bcc09ccc88e30c Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 20 Feb 2025 10:30:16 +0100 Subject: [PATCH] mkosi: Do not run unit tests during build by default We want the incremental builds to be as fast as possible, so let's not run the unit tests locally during the image build by default. --- .github/workflows/mkosi.yml | 1 + mkosi.conf | 1 + test/fmf/integration-tests/test.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 5f14be65998..6ed7a48efa1 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -161,6 +161,7 @@ jobs: UseSubvolumes=yes ToolsTreeDistribution=${{ matrix.distro }} ToolsTreeRelease=${{ matrix.release }} + WithTests=yes WorkspaceDirectory=$TMPDIR PackageCacheDirectory=$TMPDIR/cache diff --git a/mkosi.conf b/mkosi.conf index 954012ee0f0..1ae273a5daf 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -34,6 +34,7 @@ ToolsTree=default BuildDirectory=build/mkosi.builddir CacheDirectory=build/mkosi.cache Incremental=yes +WithTests=no [Validation] SignExpectedPcr=yes diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index c7aeb069989..5c9f03c960c 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -95,6 +95,7 @@ SandboxTrees= /etc/yum.repos.d/:/etc/yum.repos.d/ /var/share/test-artifacts/:/var/share/test-artifacts/ Environment=NO_BUILD=1 +WithTests=yes EOF cat /etc/dnf/dnf.conf -- 2.47.3