spec: Copy %check section from Fedora

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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-01-05 11:35:16 +01:00
parent 9306ee6357
commit b93e0fd4ab
1 changed files with 2 additions and 3 deletions

View File

@ -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