From bda943d73c2ae9bc6675c97c325801153d927bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Mon, 17 Apr 2023 14:23:09 +0200 Subject: [PATCH] Test: install pytest from pip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pytest version available in RHEL repos (especially on el8) is too old to be used with osbuild tests and how we execute them. In order to keep the test implementation the same across all distributions and their versions, install pytest from pip and not system repositories. Related: rhbz#2174847 Signed-off-by: Tomáš Hozza --- tests/unit-tests/run-unit-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit-tests/run-unit-tests.sh b/tests/unit-tests/run-unit-tests.sh index 4112c23..281f3e0 100755 --- a/tests/unit-tests/run-unit-tests.sh +++ b/tests/unit-tests/run-unit-tests.sh @@ -47,10 +47,13 @@ sudo dnf install -y \ "${PKG_MAINT_TOOL}" \ rpmdevtools \ python3-mako \ - python3-pytest \ + python3-pip \ dosfstools sudo dnf builddep -y osbuild.spec +# Install pytst from pip, because the version in some RHEL / CentOS releases is too old +sudo pip3 install pytest + # Make sure that /usr/lib/systemd/boot/efi/linuxx64.efi.stub is available to enable pe32p tests case "${ID}-${VERSION_ID}" in rhel-8.* | centos-8)