From 91f43a18d477c101aaaeb1c6cac5b6f35af196a9 Mon Sep 17 00:00:00 2001 From: ruebb Date: Fri, 10 Jan 2020 22:52:58 -0500 Subject: [PATCH] close check --- python-pocketlint.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-pocketlint.spec b/python-pocketlint.spec index 030fa27..43f3a4e 100644 --- a/python-pocketlint.spec +++ b/python-pocketlint.spec @@ -1,3 +1,4 @@ +%global with_tests 0%{?_with_tests:0} Name: python-pocketlint Version: 0.17 Release: 2 @@ -48,7 +49,10 @@ Python-based source projects. %make_install PYTHON=%{__python3} %check +%if %{with_tests} +make check PYTHON=%{__python2} make check PYTHON=%{__python3} +%endif %files -n python3-pocketlint %license COPYING