diff --git a/tests/unit/test_package_managers.py b/tests/unit/test_package_managers.py index 3b169c9a76..df5009bb97 100644 --- a/tests/unit/test_package_managers.py +++ b/tests/unit/test_package_managers.py @@ -1102,32 +1102,15 @@ def _parametrize_test_install_filesystempath() -> Iterator[ None # noqa: E501 elif package_manager_class is tmt.package_managers.dnf.Dnf: - if 'centos:stream8' in container.url or 'fedora:rawhide' in container.url: - yield container, \ - package_manager_class, \ - FileSystemPath('/usr/bin/dos2unix'), \ - r"rpm -q --whatprovides /usr/bin/dos2unix \|\| dnf install -y /usr/bin/dos2unix", \ - 'Installed:\n dos2unix-', \ - None # noqa: E501 - - else: - yield container, \ - package_manager_class, \ - FileSystemPath('/usr/bin/dos2unix'), \ - r"rpm -q --whatprovides /usr/bin/dos2unix \|\| dnf install -y /usr/bin/dos2unix", \ - 'Installed:\n dos2unix-', \ - None # noqa: E501 + yield container, \ + package_manager_class, \ + FileSystemPath('/usr/bin/dos2unix'), \ + r"rpm -q --whatprovides /usr/bin/dos2unix \|\| dnf install -y /usr/bin/dos2unix", \ + 'Installed:\n dos2unix-', \ + None # noqa: E501 elif package_manager_class is tmt.package_managers.dnf.Yum: - if 'centos:stream8' in container.url: - yield container, \ - package_manager_class, \ - FileSystemPath('/usr/bin/dos2unix'), \ - r"rpm -q --whatprovides /usr/bin/dos2unix \|\| yum install -y /usr/bin/dos2unix && rpm -q --whatprovides /usr/bin/dos2unix", \ - 'Installed:\n dos2unix-', \ - None # noqa: E501 - - elif 'centos:7' in container.url: + if 'centos:7' in container.url: yield container, \ package_manager_class, \ FileSystemPath('/usr/bin/dos2unix'), \ @@ -1135,14 +1118,6 @@ def _parametrize_test_install_filesystempath() -> Iterator[ 'Installed:\n dos2unix.', \ None # noqa: E501 - elif 'fedora:rawhide' in container.url: - yield container, \ - package_manager_class, \ - FileSystemPath('/usr/bin/dos2unix'), \ - r"rpm -q --whatprovides /usr/bin/dos2unix \|\| yum install -y /usr/bin/dos2unix && rpm -q --whatprovides /usr/bin/dos2unix", \ - 'Installed:\n dos2unix-', \ - None # noqa: E501 - else: yield container, \ package_manager_class, \