Don't skip all tests when building without optional tests
Print the reason for skipped tests instead.
This commit is contained in:
parent
5df9f91cbe
commit
2c53ee3603
@ -27,7 +27,8 @@ BuildRequires: python3-sphinx
|
|||||||
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
|
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
|
||||||
|
|
||||||
%if %{with optional_tests}
|
%if %{with optional_tests}
|
||||||
# Optional tests deps:
|
# Optional tests deps, can be individually skipped,
|
||||||
|
# but sqlalchemy is required for both whoosh and xapian tests
|
||||||
BuildRequires: python3-sqlalchemy
|
BuildRequires: python3-sqlalchemy
|
||||||
BuildRequires: python3-whoosh
|
BuildRequires: python3-whoosh
|
||||||
BuildRequires: python3-xapian
|
BuildRequires: python3-xapian
|
||||||
@ -56,10 +57,8 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with optional_tests}
|
|
||||||
%check
|
%check
|
||||||
%pytest -v
|
%pytest -v -rs
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user