From b93e0fd4ab0d1703ed0efb5f0dc30b04e27e0e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 5 Jan 2017 11:35:16 +0100 Subject: [PATCH] spec: Copy %check section from Fedora MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It runs the tests only once, runs the expensive preparation of RPMs only if unit tests succeeded and does not compute coverage (which could not be examined anyway). Signed-off-by: Lubomír Sedlář --- pungi.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pungi.spec b/pungi.spec index cb7bc394..80138108 100644 --- a/pungi.spec +++ b/pungi.spec @@ -7,7 +7,7 @@ Group: Development/Tools License: GPLv2 URL: https://fedorahosted.org/pungi Source0: https://fedorahosted.org/pungi/attachment/wiki/%{version}/%{name}-%{version}.tar.bz2 -BuildRequires: python-nose, python-nose-cov, python-mock +BuildRequires: python-nose, python-mock BuildRequires: python-devel, python-setuptools, python2-productmd BuildRequires: python-lockfile, kobo, kobo-rpmlib, python-kickstart, createrepo_c BuildRequires: python-lxml, libselinux-python, yum-utils, lorax @@ -86,9 +86,8 @@ rm -rf %{buildroot} %{_bindir}/%{name}-fedmsg-notification %check +nosetests --exe ./tests/data/specs/build.sh -python2 setup.py test -nosetests --exe --with-cov --cov-report html --cov-config tox.ini cd tests && ./test_compose.sh %changelog