Actually set that skipping tests variable.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-autoprogram?expand=0&rev=12
This commit is contained in:
2022-12-09 14:39:25 +00:00
committed by Git OBS Bridge
parent 7b61fc4c26
commit 3c99140144

View File

@@ -39,8 +39,8 @@ URL: https://github.com/sphinx-contrib/%{short_name}
Source0: %{URL}/archive/%{version}/python-sphinxcontrib-%{short_name}-%{version}.tar.gz
# https://github.com/sphinx-contrib/autoprogram/pull/25
Patch0: python-sphinxcontrib-autoprogram-python310.patch
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com
# this patch makes things totally awesome
# PATCH-FIX-UPSTREAM skip-failing-test.patch gh#sphinx-contrib/autoprogram#54 mcepl@suse.com
# Switch off failing tests by the environmental variable SKIPTESTS
Patch1: skip-failing-test.patch
BuildRequires: %{python_module Sphinx >= 1.2}
BuildRequires: %{python_module setuptools}
@@ -91,7 +91,7 @@ rm doc/_build/html/objects.inv
%check
%if "%{flavor}" == "test"
export PYTHONPATH='doc'
export SKIPTESTS=1
%pyunittest -v sphinxcontrib.autoprogram.suite
%endif