From 52457b3eb994625240e30159943050ab133eaee06e3433e47e1b373b590032b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 8 Aug 2018 13:56:56 +0000 Subject: [PATCH] - Kill memcache deamon at the end of the tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-memcached?expand=0&rev=26 --- python-python-memcached.changes | 5 +++++ python-python-memcached.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-python-memcached.changes b/python-python-memcached.changes index aa64982..0b9920a 100644 --- a/python-python-memcached.changes +++ b/python-python-memcached.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 8 13:56:44 UTC 2018 - tchvatal@suse.com + +- Kill memcache deamon at the end of the tests + ------------------------------------------------------------------- Wed Aug 8 13:28:02 UTC 2018 - tchvatal@suse.com diff --git a/python-python-memcached.spec b/python-python-memcached.spec index b4d3511..0f1ab2e 100644 --- a/python-python-memcached.spec +++ b/python-python-memcached.spec @@ -32,6 +32,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: memcached BuildRequires: python-rpm-macros +BuildRequires: util-linux Requires: memcached Requires: python-six BuildArch: noarch @@ -63,8 +64,9 @@ sed -i \ %python_install %check -/usr/sbin/memcached & +/usr/sbin/memcached -dv -P $PWD/memcached.pid %python_expand nosetests-%{$python_bin_suffix} +kill -9 $(cat $PWD/memcached.pid) %files %{python_files} %license PSF.LICENSE