[python-redis] Run redis during the test suite

Luke Macken lmacken at fedoraproject.org
Sat Jul 27 20:12:11 UTC 2013


commit dcabdad3b4e4540485d679d63d839c129f6d669b
Author: Luke Macken <lmacken at redhat.com>
Date:   Sat Jul 27 16:10:38 2013 -0400

    Run redis during the test suite

 python-redis.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/python-redis.spec b/python-redis.spec
index 8801738..d852b7b 100644
--- a/python-redis.spec
+++ b/python-redis.spec
@@ -17,6 +17,7 @@ BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-py
 BuildRequires:  pytest
+BuildRequires:  redis
 
 %if 0%{?with_python3}
 BuildRequires:  python3-devel
@@ -64,6 +65,7 @@ popd
 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
 
 %check
+redis-server &
 %if 0%{?with_python3}
 pushd %{py3dir}
 %{__python3} setup.py test
@@ -71,6 +73,7 @@ popd
 %endif
 
 %{__python} setup.py test
+kill %1
 
 %files
 %defattr(-,root,root,-)


More information about the scm-commits mailing list