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:
parent
b17e5d64a1
commit
cc473d807f
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue