-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: convert EL 7 test to an EL 8 test, using Alma
CentOS 7, EPEL 7, CentOS 8 and CentOS Stream 8 are all EOL, so let's go to Alma 8 for the EL test. Signed-off-by: Adam Williamson <awilliam@redhat.com>
- Loading branch information
Showing
4 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# this container definition is intended *only* for running the oz test suite, it is not | ||
# a general-purpose oz container definition! | ||
|
||
FROM quay.io/almalinuxorg/8-base:latest | ||
RUN set -exo pipefail \ | ||
&& dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \ | ||
&& dnf install -y --setopt install_weak_deps=false --nodocs \ | ||
python3-requests python3-cryptography python3-setuptools python3-libvirt python3-lxml python3-libguestfs python3-pytest python3-coverage python3-monotonic \ | ||
libvirt-daemon libvirt-daemon-kvm libvirt-daemon-driver-qemu libvirt-daemon-config-network systemd \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/* /var/log/dnf* | ||
|
||
COPY ./ /oz | ||
# the XML generation tests are inherently unreliable before Python 3.8, | ||
# as there was no consistent ordering of XML element attributes. See | ||
# https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring | ||
RUN printf "#!/bin/sh\n/usr/sbin/libvirtd -d\ncd /oz\npython3 -m pytest -vv -k 'not test_xml_generation and not modify_libvirt_xml_for_serial' tests/" > /usr/local/bin/runtests.sh && chmod ugo+x /usr/local/bin/runtests.sh | ||
CMD /usr/local/bin/runtests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters