Let qt5_install_tests macro handle mangling python shebangs

Resolves: bz#1968462
This commit is contained in:
Jan Grulich 2021-06-10 13:50:21 +02:00
parent 150440f095
commit 07e6164f3f

View File

@ -10,7 +10,7 @@
Summary: Qt5 - QtDeclarative component
Name: qt5-%{qt_module}
Version: 5.15.2
Release: 6%{?dist}
Release: 7%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -112,14 +112,6 @@ export PATH=`pwd`:$PATH
%if 0%{?build_tests}
%qt5_install_tests
# Fix mangling shebangs
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/make.py
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/generation/test/run.py
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/generation/generator.py
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/lint/lint.py
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/lint/test/run.py
sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262.py
%endif
%ifarch %{multilib_archs}
@ -232,6 +224,10 @@ make check -k -C tests ||:
%endif
%changelog
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-7
- Let qt5_install_tests macro handle mangling python shebangs
Resolves: bz#1968462
* Wed Jun 09 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-6
- Add gating tests
Resolves: bz#1968462