forked from pool/python-pylibmc
Accepting request 1036671 from home:dimstar:Factory
- Cope with memcached moving from sbindir to bindir and safeguard against non-existing memcached binary: it if can't be started, there is no reason to even attempt to run the test suite. OBS-URL: https://build.opensuse.org/request/show/1036671 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibmc?expand=0&rev=18
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pylibmc
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -58,7 +58,14 @@ export CFLAGS="%{optflags}"
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%{_sbindir}/memcached &
|
||||
if [ -f %{_sbindir}/memcached ]; then
|
||||
%{_sbindir}/memcached &
|
||||
elif [ -f %{_bindir}/memcached ]; then
|
||||
%{_bindir}/memcached &
|
||||
else
|
||||
echo "Failed to start memcached - tests can't pass"
|
||||
exit 1
|
||||
fi
|
||||
pid=$!
|
||||
%pytest_arch -k 'not testBigGetMulti'
|
||||
kill $pid
|
||||
|
Reference in New Issue
Block a user