Reenable tests

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-12-08 20:47:34 -08:00
parent 613e0990f2
commit a0ba245c85

View File

@ -7,7 +7,7 @@
# #
# If we should enable tests by default # If we should enable tests by default
# #
%bcond_with tests %bcond_without tests
# Set this when there's a beta or rc version # Set this when there's a beta or rc version
#%%global betaver rc2 #%%global betaver rc2
@ -15,7 +15,7 @@
Name: ansible-core Name: ansible-core
Summary: A radically simple IT automation system Summary: A radically simple IT automation system
Version: 2.12.1 Version: 2.12.1
Release: 1%{?betaver}%{?dist} Release: 2%{?betaver}%{?dist}
License: GPLv3+ License: GPLv3+
Source0: %pypi_source ansible-core %{version}%{?betaver} Source0: %pypi_source ansible-core %{version}%{?betaver}
@ -52,6 +52,9 @@ BuildRequires: python3-packaging
BuildRequires: python3-pexpect BuildRequires: python3-pexpect
BuildRequires: openssl BuildRequires: openssl
BuildRequires: python3-systemd BuildRequires: python3-systemd
BuildRequires: python3-pytz
BuildRequires: glibc-all-langpacks
BuildRequires: python3-resolvelib
# #
# These only exist on Fedora. RHEL8 will just skip tests that need them. # These only exist on Fedora. RHEL8 will just skip tests that need them.
# #
@ -206,12 +209,15 @@ find %{buildroot}/%{python3_sitelib} -name .travis.yml -exec rm -f {} \;
%check %check
%if %{with tests} %if %{with tests}
ln -s /usr/bin/pytest-3 bin/pytest ln -s /usr/bin/pytest-3 bin/pytest
pathfix.py -i %{__python3} -p test/lib/ansible_test/_data/cli/ansible_test_cli_stub.py
# This test needs a module not packaged in Fedora so disable it. # This test needs a module not packaged in Fedora so disable it.
#rm -f test/units/modules/cloud/cloudstack/test_cs_traffic_type.py #rm -f test/units/modules/cloud/cloudstack/test_cs_traffic_type.py
# These tests are failing with pytest 6 # These tests are failing with pytest 6
rm -f test/units/galaxy/test_collection_install.py rm -f test/units/galaxy/test_collection_install.py
rm -f test/units/module_utils/urls/test_prepare_multipart.py rm -f test/units/module_utils/urls/test_prepare_multipart.py
# requires perms to read/manipulate iptables rules
rm -f test/units/modules/test_iptables.py
# This seems sunos specific
rm -f test/units/modules/test_service.py
make PYTHON=/usr/bin/python3 tests-py3 make PYTHON=/usr/bin/python3 tests-py3
%endif %endif
@ -237,6 +243,9 @@ make PYTHON=/usr/bin/python3 tests-py3
%endif %endif
%changelog %changelog
* Wed Dec 08 2021 Kevin Fenzi <kevin@scrye.com> - 2.12.1-2
- Re-enable tests
* Tue Dec 07 2021 Kevin Fenzi <kevin@scrye.com> - 2.12.1-1 * Tue Dec 07 2021 Kevin Fenzi <kevin@scrye.com> - 2.12.1-1
- Update to 2.12.1. Fixes rhbz#2029598 - Update to 2.12.1. Fixes rhbz#2029598