14
0

- Fix launch of memcached for tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymemcache?expand=0&rev=36
This commit is contained in:
2022-12-07 13:33:44 +00:00
committed by Git OBS Bridge
parent 2575578270
commit 9ba6a2bdda
2 changed files with 10 additions and 1 deletions

View File

@@ -71,7 +71,11 @@ sed -i 's/tool:pytest/tool:ignore-pytest-cov/' setup.cfg
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%{_sbindir}/memcached &
if [ -f %{_sbindir}/memcached ]; then
%{_sbindir}/memcached &
elif [ -f %{_bindir}/memcached ]; then
%{_bindir}/memcached &
fi
cat << EOF > pytest.ini
[pytest]