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: