[python-cement] Fixed tests
derks
derks at fedoraproject.org
Fri Mar 28 18:41:20 UTC 2014
commit fec9691b435d1dc9cc98f9a1964979f9cc49ec76
Author: BJ Dierkes <derks at datafolklabs.com>
Date: Thu Mar 27 13:04:05 2014 -0500
Fixed tests
python-cement.spec | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/python-cement.spec b/python-cement.spec
index 9105fd4..ded1a86 100644
--- a/python-cement.spec
+++ b/python-cement.spec
@@ -26,6 +26,15 @@ BuildArch: noarch
BuildRequires: python2-devel, python-setuptools, python-nose, python-coverage
+# for testing only
+BuildRequires: python-configobj, python-pylibmc, PyYAML, pystache
+BuildRequires: python-genshi, memcached
+%if 0%{?with_python3}
+BuildRequires: python3-configobj, python3-PyYAML, python3-pystache
+%endif
+
+
+
%if 0%{?with_python3}
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-coverage
%endif
@@ -88,6 +97,7 @@ rm -rf %{buildroot}%{python3_sitelib}/tests/
%check
+memcached 2>&1 >/dev/null &
%{__python} setup.py nosetests --verbosity 3
%if 0%{?with_python3}
@@ -96,6 +106,13 @@ rm -rf %{buildroot}%{python3_sitelib}/tests/
popd
%endif
+# don't leave memcached running
+/usr/bin/ps auxw \
+ | grep [m]emcached \
+ | awk {' print $1 '} \
+ | xargs /usr/bin/kill 2>&1 >/dev/null \
+ ||:
+
%clean
rm -rf %{buildroot}
@@ -115,6 +132,7 @@ rm -rf %{buildroot}
- Latest stable sources from upstream. Full change log available at
http://builtoncement.com/2.2/changes.html
- Removed Patch2: cement-2.0.2-tests.patch (applied upstream)
+- Added additional BRs for testing
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list