14
0

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:
2022-11-20 00:36:31 +00:00
committed by Git OBS Bridge
parent 29c52b337e
commit e30287615a
2 changed files with 16 additions and 2 deletions

View File

@@ -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>

View File

@@ -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