[fedmsg] Added unit tests.

Ralph Bean ralph at fedoraproject.org
Thu Jun 7 02:02:27 UTC 2012


commit ef86e253b6f6fe08d4ffc22c81cad1ad4e8ef1aa
Author: Ralph Bean <rbean at redhat.com>
Date:   Wed Jun 6 22:02:20 2012 -0400

    Added unit tests.

 .gitignore  |    1 +
 fedmsg.spec |   19 ++++++++++++++++---
 sources     |    2 +-
 3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5c3732b..5988c14 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /fedmsg-0.1.4.tar.gz
 /fedmsg-0.1.5.tar.gz
 /fedmsg-0.1.6.tar.gz
+/fedmsg-0.1.7.tar.gz
diff --git a/fedmsg.spec b/fedmsg.spec
index 8717063..23d37bd 100644
--- a/fedmsg.spec
+++ b/fedmsg.spec
@@ -4,7 +4,7 @@
 %global modname fedmsg
 
 Name:           fedmsg
-Version:        0.1.6
+Version:        0.1.7
 Release:        1%{?dist}
 Summary:        Tools for Fedora Infrastructure real-time messaging
 Group:          Applications/Internet
@@ -16,9 +16,9 @@ BuildArch:      noarch
 
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools-devel
-BuildRequires:  moksha >= 0.8.0
+BuildRequires:  moksha >= 0.8.1
 
-Requires:       moksha >= 0.8.0
+Requires:       moksha >= 0.8.1
 Requires:       python-fabulous
 Requires:       python-simplejson
 Requires:       python-zmq
@@ -44,6 +44,15 @@ zeromq.  Includes:
 %{__mkdir_p} %{buildroot}%{_sysconfdir}
 %{__cp} fedmsg-config.py %{buildroot}%{_sysconfdir}/fedmsg-config.py
 
+%check
+%if %{?rhel}%{!?rhel:0} >= 6
+# Check section removed until a RHEL6 bug with python-repoze-what-plugins-sql
+# can be fixed.  It causes a fatal error in the test suite.
+# https://bugzilla.redhat.com/show_bug.cgi?id=813925
+%else
+PYTHONPATH=$(pwd) python setup.py test
+%endif
+
 %files
 %doc doc/ README.rst LICENSE
 %{_bindir}/fedmsg-logger
@@ -59,6 +68,10 @@ zeromq.  Includes:
 %config(noreplace) %{_sysconfdir}/fedmsg-config.py*
 
 %changelog
+* Wed Jun 06 2012 Ralph Bean <rbean at redhat.com> - 0.1.7-1
+- Bugfix and tests.
+- Added %%check section.
+
 * Mon Jun 04 2012 Ralph Bean <rbean at redhat.com> - 0.1.6-1
 - Support multiple endpoints per node-service.
 
diff --git a/sources b/sources
index dd73aad..0f7c767 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fa90d0993ae54593a74d97133eec8d6e  fedmsg-0.1.6.tar.gz
+13bac57140b7e0644a790c5a81b94586  fedmsg-0.1.7.tar.gz


More information about the scm-commits mailing list