diff --git a/plan.fmf b/plan.fmf index 1b4e82e..b06b574 100644 --- a/plan.fmf +++ b/plan.fmf @@ -4,6 +4,12 @@ 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: c10s_mockbuild + path: / + test: NAME="CentOS Stream" VERSION_ID=10 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 d59370d..44ae6bb 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: