%pytest: Set $PYTEST_ADDOPTS when %{__pytest_addopts} is defined

Related to https://bugzilla.redhat.com/show_bug.cgi?id=1935212
This commit is contained in:
Miro Hrončok 2021-06-26 16:24:21 +02:00
commit 1f8a088b90
3 changed files with 39 additions and 1 deletions

View file

@ -86,4 +86,5 @@
PATH="%{buildroot}%{_bindir}:$PATH"\\\
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}"\\\
PYTHONDONTWRITEBYTECODE=1\\\
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"}\\\
%__pytest}