]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fmf: Insist on mkosi sha being available
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Jan 2025 15:28:39 +0000 (16:28 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 7 Jan 2025 18:26:13 +0000 (18:26 +0000)
Let's assume the workflow file containing the mkosi always being
available.

Also fix the detection while we're at it by not leaving the systemd
directory.

(cherry picked from commit 9e76e9c9dc211440e79a7e27600593169597cc41)

test/fmf/integration-tests/test.sh

index 51cbab6ec9805f5d546a717b6d0273a2671801f1..f16bd84cbaf2f63966df4b1d5b7b83a420f2717c 100755 (executable)
@@ -17,20 +17,14 @@ if [[ -n "${PACKIT_SOURCE_URL:-}" ]]; then
     git merge "pr/$PACKIT_SOURCE_BRANCH"
 fi
 git log --oneline -5
-popd
 
 # Now prepare mkosi, possibly at the same version required by the systemd repo
 git clone https://github.com/systemd/mkosi
-# If we have it, pin the mkosi version to the same one used by Github Actions, to ensure consistency
-if [ -f .github/workflows/mkosi.yml ]; then
-    mkosi_hash="$(grep systemd/mkosi@ .github/workflows/mkosi.yml | sed "s|.*systemd/mkosi@||g")"
-    git -C mkosi checkout "$mkosi_hash"
-fi
+mkosi_hash="$(grep systemd/mkosi@ .github/workflows/mkosi.yml | sed "s|.*systemd/mkosi@||g")"
+git -C mkosi checkout "$mkosi_hash"
 
 export PATH="$PWD/mkosi/bin:$PATH"
 
-pushd systemd
-
 # shellcheck source=/dev/null
 . /etc/os-release || . /usr/lib/os-release