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
|
# Only disabling the optional tests is a more complex but careful approach
|
||||||
# Pytest will skip the related tests, so we only conditionalize the BRs
|
# Pytest will skip the related tests, so we only conditionalize the BRs
|
||||||
# This bcond is ignored when tests are disabled
|
%bcond optional_tests %{with tests}
|
||||||
%bcond_without optional_tests
|
|
||||||
|
|
||||||
# To run the tests in %%check we use pytest-timeout
|
# To run the tests in %%check we use pytest-timeout
|
||||||
# When building pytest for the first time with new Python version
|
# When building pytest for the first time with new Python version
|
||||||
# that is not possible as it depends on pytest
|
# that is not possible as it depends on pytest
|
||||||
# The bcond is ignored when tests are disabled
|
%bcond timeout %{with tests}
|
||||||
%bcond_without timeout
|
|
||||||
|
|
||||||
# When building pytest for the first time with new Python version
|
# When building pytest for the first time with new Python version
|
||||||
# we also don't have sphinx yet and cannot build docs.
|
# we also don't have sphinx yet and cannot build docs.
|
||||||
|
Loading…
Reference in New Issue
Block a user