Run test suite
This commit is contained in:
parent
8f76e3dc95
commit
c14c4300c4
2 changed files with 38 additions and 6 deletions
|
|
@ -20,6 +20,9 @@ Source0: v%{version}-nodocs.tar.gz
|
|||
#
|
||||
Source1: generate-tarball.sh
|
||||
|
||||
# downstream only patch
|
||||
Patch0: 0001-Skip-test_in_generator.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%global _description %{expand:
|
||||
|
|
@ -36,7 +39,6 @@ Summary: %{summary}
|
|||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-nose
|
||||
BuildRequires: python2-coverage
|
||||
|
||||
%description -n python2-%{srcname} %{_description}
|
||||
|
||||
|
|
@ -47,14 +49,13 @@ Summary: %{summary}
|
|||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3.6dist(coverage)
|
||||
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}-nodocs
|
||||
%autosetup -n %{srcname}-%{version}-nodocs -p 1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
|
@ -64,9 +65,9 @@ Python 3 version.
|
|||
%py2_install
|
||||
%py3_install
|
||||
|
||||
#check
|
||||
# disable checks for now as they fail trying to lookup localhost in koji.
|
||||
#
|
||||
%check
|
||||
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} %{srcname}
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} %{srcname}
|
||||
|
||||
%files -n python2-%{srcname}
|
||||
%license COPYRIGHT.txt LICENSE.txt
|
||||
|
|
@ -89,6 +90,7 @@ Python 3 version.
|
|||
- Resolves: rhbz#1789810 CVE-2019-16789
|
||||
- Resolves: CVE-2019-16792
|
||||
- Resolves: CVE-2020-5236
|
||||
- Run test suite
|
||||
|
||||
* Wed Jul 24 2019 Stephen Smoogen <smooge@fedoraproject.org> - 1.2.1-2.1
|
||||
- Change out python3-coverage with standard lookup call.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue