[dnf/epel7] excluding python3 tests in %check

jsilhan jsilhan at fedoraproject.org
Wed Mar 4 15:11:29 UTC 2015


commit 7d724f3a8f9847a197d126fa967fcdb6250542c1
Author: Jan Silhan <jsilhan at redhat.com>
Date:   Wed Mar 4 16:11:25 2015 +0100

    excluding python3 tests in %check

 dnf.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/dnf.spec b/dnf.spec
index b6b9b13..550dfd1 100644
--- a/dnf.spec
+++ b/dnf.spec
@@ -162,9 +162,12 @@ ln -sr $RPM_BUILD_ROOT%{_bindir}/dnf $RPM_BUILD_ROOT%{_bindir}/yum
 
 %check
 make ARGS="-V" test
+
+%if %{with python3}
 pushd py3
 make ARGS="-V" test
 popd
+%endif
 
 %files -f %{name}.lang
 %doc AUTHORS README.rst COPYING PACKAGE-LICENSING


More information about the scm-commits mailing list