Hello Douglas Schilling Landgraf, David Caro, Dan Kenigsberg,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/34773

to review the following change.

Change subject: Adding the possibility to skip checks on rpmbuild
......................................................................

Adding the possibility to skip checks on rpmbuild

This way you can build the rpms skipping the tests just defining the variable
with_check to 0 when running rpmbuild, also skipping checks by default when
building on el* based hosts

Change-Id: I674ae8f8e5ff8b21a0175197bd42e61af6075afd
Signed-off-by: David Caro <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/29213
Reviewed-by: Dan Kenigsberg <[email protected]>
Reviewed-by: Douglas Schilling Landgraf <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/34766
Tested-by: Yaniv Bronhaim <[email protected]>
---
M vdsm.spec.in
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/73/34773/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index 4f822e4..49a7e27 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -20,6 +20,11 @@
 # touch configure.ac or Makefile.am.
 %{!?enable_autotools:%define enable_autotools 0}
 
+# Skips check since rhel default repos lack pep8 and pyflakes
+%if ! 0%{?rhel}
+%global with_check 1
+%endif
+
 # Required paths
 %if 0%{?fedora} >= 18
 %global _polkitdir %{_datadir}/polkit-1/rules.d
@@ -107,7 +112,7 @@
 BuildRequires: libtool
 %endif
 
-%if !0%{?rhel}
+%if 0%{?with_check}
 BuildRequires: pyflakes
 BuildRequires: python-pep8
 %endif
@@ -724,7 +729,9 @@
 %endif
 
 %check
+%if 0%{?with_check}
 make check
+%endif
 
 %clean
 rm -rf %{buildroot}


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I674ae8f8e5ff8b21a0175197bd42e61af6075afd
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5.0
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: David Caro <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to