Drop extra tests search in prep

This commit is contained in:
Neal Gompa 2022-02-22 08:19:16 -05:00
parent b954b98a1c
commit c674eb9f57

View File

@ -1,6 +1,6 @@
Name: cloud-init
Version: 22.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Cloud instance init scripts
License: ASL 2.0 or GPLv3
URL: http://launchpad.net/cloud-init
@ -101,7 +101,7 @@ sed -i -e 's|#!/usr/bin/python||' cloudinit/cmd/main.py
# Use unittest from the standard library. unittest2 is old and being
# retired in Fedora. See https://bugzilla.redhat.com/show_bug.cgi?id=1794222
find tests/ -type f | xargs sed -i s/unittest2/unittest/
find tests/ tests/ -type f | xargs sed -i s/assertItemsEqual/assertCountEqual/
find tests/ -type f | xargs sed -i s/assertItemsEqual/assertCountEqual/
%build
%py3_build
@ -189,6 +189,9 @@ python3 -m pytest tests/unittests
%changelog
* Tue Feb 22 2022 Neal Gompa <ngompa@fedoraproject.org> - 22.1-2
- Drop extra tests search in prep
* Tue Feb 22 2022 Neal Gompa <ngompa@fedoraproject.org> - 22.1-1
- Rebase to 22.1
- Backport cloud-init PR to add proper NetworkManager support [bz#2014701]