[python-webob] Actually disable tests when with_tests == 0

Bohuslav Kabrda bkabrda at fedoraproject.org
Thu May 15 11:01:29 UTC 2014


commit 39be9ccc434f86273cd8a0e77b1251daba5f198d
Author: Slavek Kabrda <bkabrda at redhat.com>
Date:   Thu May 15 12:54:50 2014 +0200

    Actually disable tests when with_tests == 0

 python-webob.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/python-webob.spec b/python-webob.spec
index 0f736c7..2a41f14 100644
--- a/python-webob.spec
+++ b/python-webob.spec
@@ -102,6 +102,7 @@ popd
 #%{__chmod} 0644 %{buildroot}%{python_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py
 
 %check
+%if 0%{?with_tests}
 %{__python} setup.py test
 
 %if 0%{?with_python3}
@@ -109,6 +110,7 @@ pushd %{py3dir}
 %{__python3} setup.py test
 popd
 %endif
+%endif # with_tests
 
 %files
 %doc docs/* README.Fedora


More information about the scm-commits mailing list