Fix sed substitutions for unittest2 and assertItemsEqual
This commit is contained in:
parent
e7d90aa880
commit
0c8287c279
@ -1,6 +1,6 @@
|
|||||||
Name: cloud-init
|
Name: cloud-init
|
||||||
Version: 19.4
|
Version: 19.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Cloud instance init scripts
|
Summary: Cloud instance init scripts
|
||||||
License: ASL 2.0 or GPLv3
|
License: ASL 2.0 or GPLv3
|
||||||
URL: http://launchpad.net/cloud-init
|
URL: http://launchpad.net/cloud-init
|
||||||
@ -86,9 +86,10 @@ ssh keys and to let the user run various scripts.
|
|||||||
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
||||||
-e 's|#!/usr/bin/python|#!/usr/bin/python3|' tools/* cloudinit/ssh_util.py
|
-e 's|#!/usr/bin/python|#!/usr/bin/python3|' tools/* cloudinit/ssh_util.py
|
||||||
|
|
||||||
# Use unittest from the standard library
|
# Use unittest from the standard library. unittest2 is old and being
|
||||||
sed -i s/unittest2/unittest/ cloudinit/tests/*.py
|
# retired in Fedora. See https://bugzilla.redhat.com/show_bug.cgi?id=1794222
|
||||||
sed -i s/assertItemsEqual/assertCountEqual/ tests/unittests/test_handler/*.py
|
find cloudinit/tests/ tests/ -type f | xargs sed -i s/unittest2/unittest/
|
||||||
|
find cloudinit/tests/ tests/ -type f | xargs sed -i s/assertItemsEqual/assertCountEqual/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -157,6 +158,9 @@ nosetests-%{python3_version} tests/unittests/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 23 2020 Dusty Mabe <dusty@dustymabe.com> - 19.4-2
|
||||||
|
- Fix sed substitutions for unittest2 and assertItemsEqual
|
||||||
|
|
||||||
* Fri Feb 14 2020 Eduardo Otubo <otubo@redhat.com> - 19.4-1
|
* Fri Feb 14 2020 Eduardo Otubo <otubo@redhat.com> - 19.4-1
|
||||||
- Updated to 19.4
|
- Updated to 19.4
|
||||||
- Rebasing the Fedora specific patches but removing patches that don't apply anymore
|
- Rebasing the Fedora specific patches but removing patches that don't apply anymore
|
||||||
|
Loading…
Reference in New Issue
Block a user