David Caro has uploaded a new change for review.

Change subject: Making the tests optional
......................................................................

Making the tests optional

Disabled by default as that's the default behavior we want at the project (run
the tests when you want to run the tests, build the package when you want to
build the package).

Change-Id: I8567b4c93f8b02c448815d4ea853469381a2847f
Signed-off-by: David Caro <dcaro...@redhat.com>
---
M mom.spec.in
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/22/36122/1

diff --git a/mom.spec.in b/mom.spec.in
index dd40bb6..accfce0 100644
--- a/mom.spec.in
+++ b/mom.spec.in
@@ -1,5 +1,6 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+%{!?with_check: %global with_check 0}
 
 %global                package_version @PACKAGE_VERSION@
 %global                package_name @PACKAGE_NAME@
@@ -13,7 +14,7 @@
 License:       GPLv2
 URL:           http://www.ovirt.org
 Source:                 %{package_name}-%{package_version}.tar.gz
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release} 
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}
 BuildArch:     noarch
 BuildRequires: python-devel
 BuildRequires: python-nose
@@ -63,7 +64,9 @@
 install -m 0644 doc/mom-balloon+ksm.conf 
"%{buildroot}/%{_sysconfdir}/momd.conf"
 
 %check
+%if 0%{with_check}
 make check %{?_smp_mflags}
+%endif
 
 %post
 /sbin/chkconfig --add momd


-- 
To view, visit http://gerrit.ovirt.org/36122
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8567b4c93f8b02c448815d4ea853469381a2847f
Gerrit-PatchSet: 1
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: David Caro <dcaro...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to