[moksha] Only disable tests for el6.

Ralph Bean ralph at fedoraproject.org
Mon May 14 16:58:14 UTC 2012


commit ef09ff05d031a0c1ed77c2da4a0502d6206ac4ce
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon May 14 12:57:44 2012 -0400

    Only disable tests for el6.

 moksha.spec |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/moksha.spec b/moksha.spec
index a3628b5..d6dc2db 100644
--- a/moksha.spec
+++ b/moksha.spec
@@ -3,7 +3,7 @@
 
 Name:           moksha
 Version:        0.7.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A platform for creating real-time web applications
 Group:          Applications/Internet
 License:        ASL 2.0
@@ -193,18 +193,24 @@ make -C docs html
 
 
 
+
+%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
 
-###%check
-###PYTHONPATH=$(pwd) python setup.py test
-###
-#### Remove the tests
-###%{__rm} -r %{buildroot}%{python_sitelib}/%{name}/tests
-###
-#### Remove the demo after its tests pass
-####%{__rm} -r %{buildroot}%{python_sitelib}/%{name}/apps/demo
+%else
+PYTHONPATH=$(pwd) python setup.py test
+%endif
+
+# Remove the tests
+%{__rm} -r %{buildroot}%{python_sitelib}/%{name}/tests
+
+# Remove the demo after its tests pass
+#%{__rm} -r %{buildroot}%{python_sitelib}/%{name}/apps/demo
+
 
 
 %post
@@ -256,6 +262,9 @@ fi
 %doc docs/_build/html
 
 %changelog
+* Mon May 14 2012 Ralph Bean <rbean at redhat.com> - 0.7.1-3
+- Only removing check in the case of el6.
+
 * Mon May 14 2012 Ralph Bean <rbean at redhat.com> - 0.7.1-2
 - Commented check section out.  Tests fail due to a RHEL bug with repoze.
 


More information about the scm-commits mailing list