forked from pool/python-pymemcache
- 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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user