Skip to content

Commit

Permalink
test: apply a workaround for Fedora-CoreOS rebased on Fedora 41
Browse files Browse the repository at this point in the history
Fedora CoreOS has been rebased on Fedora 41 which brings in Python 3.13
build rpm's while our WS container uses Python 3.12 and thus we aren't
testing main.
  • Loading branch information
jelly committed Nov 5, 2024
1 parent 3b1a417 commit 096c0b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/ws-container.install
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ system
for rpm in ws bridge tests $PACKAGES; do
rpm2cpio /var/tmp/cockpit-$rpm-*.rpm | cpio -i --make-directories --directory=/var/tmp/install
done

# HACK: Fedora CoreOS is already on Python 3.13, while Fedora-40 is Python3.12
if [ -d /var/tmp/install/usr/lib/python3.13/site-packages/cockpit ]; then
mkdir -p /var/tmp/install/usr/lib/python3.12/site-packages/
mv /var/tmp/install/usr/lib/python3.13/site-packages/cockpit /var/tmp/install/usr/lib/python3.12/site-packages/
fi

podman run --name build-cockpit -i \
-v /var/tmp/:/run/build:Z \
quay.io/cockpit/ws sh -exc '
Expand Down

0 comments on commit 096c0b0

Please sign in to comment.