Unify %bcond syntax
This commit is contained in:
parent
d2d1e5602a
commit
ab21a102ff
@ -25,14 +25,12 @@ Patch: pytest-7.1.3-fix-xfails.patch
|
||||
|
||||
# Only disabling the optional tests is a more complex but careful approach
|
||||
# Pytest will skip the related tests, so we only conditionalize the BRs
|
||||
# This bcond is ignored when tests are disabled
|
||||
%bcond_without optional_tests
|
||||
%bcond optional_tests %{with tests}
|
||||
|
||||
# To run the tests in %%check we use pytest-timeout
|
||||
# When building pytest for the first time with new Python version
|
||||
# that is not possible as it depends on pytest
|
||||
# The bcond is ignored when tests are disabled
|
||||
%bcond_without timeout
|
||||
%bcond timeout %{with tests}
|
||||
|
||||
# When building pytest for the first time with new Python version
|
||||
# we also don't have sphinx yet and cannot build docs.
|
||||
|
Loading…
Reference in New Issue
Block a user