From bdc6d70f0ea0376e41994113e0ce6ff06b0bc5d5 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 23 Jun 2025 12:00:58 -0400 Subject: [PATCH] TMT: Install bats from source on RHEL bats isn't shipped on ELN, RHEL and CentOS Stream. Enabling EPEL is also problematic on internal testing farm environments. This commit fetches and installs bats from source on RHEL and CentOS Stream so we don't have to worry about EPEL enablement anymore. We also aren't doing any ELN testing on TMT currently, so we don't need any additional configuration for it and the current config should work across the board. Signed-off-by: Lokesh Mandvekar --- plans/main.fmf | 10 ++++++++-- systemtest/tmt/main.fmf | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plans/main.fmf b/plans/main.fmf index baa8b2fc..1bc9fef7 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -6,8 +6,14 @@ prepare: - when: distro == centos-stream or distro == rhel how: shell script: | - dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm - dnf -y config-manager --set-enabled epel + # Install bats + # https://bats-core.readthedocs.io/en/stable/installation.html + BATS_VERSION=1.12.0 + curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz + pushd bats-core-"$BATS_VERSION" + ./install.sh /usr + popd + rm -rf bats-core-"$BATS_VERSION" order: 10 - when: initiator == packit how: shell diff --git a/systemtest/tmt/main.fmf b/systemtest/tmt/main.fmf index 6dd021b8..fd0b3e66 100644 --- a/systemtest/tmt/main.fmf +++ b/systemtest/tmt/main.fmf @@ -1,5 +1,4 @@ require: - - bats - skopeo-tests environment: