fmf: Check out mkosi to some directory in /var/tmp

Using the source tree of the spec can still lead to conflicts if a
mkosi/ directory exists there (which is the case in the hyperscale
systemd spec repo), so let's check out mkosi in /var/tmp to ensure
we don't conflict.
This commit is contained in:
Daan De Meyer 2025-04-03 13:05:38 +02:00
commit cc473d807f

View file

@ -36,11 +36,11 @@ mkdir systemd
rpm2cpio ./systemd-*.src.rpm | cpio --to-stdout --extract './*.tar.gz' | tar xz --strip-components=1 -C systemd
# Now prepare mkosi at the same version required by the systemd repo.
git clone https://github.com/systemd/mkosi
git clone https://github.com/systemd/mkosi /var/tmp/systemd-integration-tests-mkosi
mkosi_hash="$(grep systemd/mkosi@ systemd/.github/workflows/mkosi.yml | sed "s|.*systemd/mkosi@||g")"
git -C mkosi checkout "$mkosi_hash"
git -C /var/tmp/systemd-integration-tests-mkosi checkout "$mkosi_hash"
export PATH="$PWD/mkosi/bin:$PATH"
export PATH="/var/tmp/systemd-integration-tests-mkosi/bin:$PATH"
pushd systemd