diff --git a/python-pymemcache.changes b/python-pymemcache.changes index 2a75352..90d508f 100644 --- a/python-pymemcache.changes +++ b/python-pymemcache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 7 13:33:02 UTC 2022 - Daniel Garcia + +- Fix launch of memcached for tests + ------------------------------------------------------------------- Wed Dec 7 13:11:08 UTC 2022 - Daniel Garcia diff --git a/python-pymemcache.spec b/python-pymemcache.spec index 3bb1087..6cf56d3 100644 --- a/python-pymemcache.spec +++ b/python-pymemcache.spec @@ -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]