From 73f970e5653bc7fc211c8549161fcee29ea10437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 5 Dec 2025 18:41:09 +0100 Subject: [PATCH] CI: Run c9s mock build with EPEL enabled, to verify %check passes there Note that CentOS Stream mock builds run with EPEL (Next) enabled, hence we also enable tox tests in %check for better coverage. Hence, running this makes sense even for actual c9s backports. (cherry picked from Fedora commit b95c0052f0d9c4deed9a1cbab3c4de3244b02ca5) --- plan.fmf | 3 +++ pyproject-rpm-macros.spec | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plan.fmf b/plan.fmf index 675caa1..6113eaf 100644 --- a/plan.fmf +++ b/plan.fmf @@ -4,6 +4,9 @@ discover: - name: same_repo how: shell tests: + - name: c9s_mockbuild + path: / + test: NAME="CentOS Stream" VERSION_ID=9 tests/mocktest.sh pyproject-rpm-macros - name: pytest path: /tests test: ./mocktest.sh python-pytest diff --git a/pyproject-rpm-macros.spec b/pyproject-rpm-macros.spec index 6f9a479..6d74c8a 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -5,8 +5,8 @@ License: MIT %bcond tests 1 # pytest-xdist and tox are not desired in RHEL -%bcond pytest_xdist %{undefined rhel} -%bcond tox_tests %{undefined rhel} +%bcond pytest_xdist %[%{undefined rhel} || %{defined epel}] +%bcond tox_tests %[%{undefined rhel} || %{defined epel}] # The idea is to follow the spirit of semver # Given version X.Y.Z: