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,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 18 14:59:02 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 10 03:36:04 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Dec 10 03:36:04 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylibmc
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -58,7 +58,14 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%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=$!
|
pid=$!
|
||||||
%pytest_arch -k 'not testBigGetMulti'
|
%pytest_arch -k 'not testBigGetMulti'
|
||||||
kill $pid
|
kill $pid
|
||||||
|
Reference in New Issue
Block a user