test_depsolve.py: skip known broken tests with DNF5

The DNF5 implementation has known issues, which are not yet fixed and in
some cases, they can't be fixed due to the limitations and state of the
DNF5 implementation itself. Skip them for now.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-08-06 18:49:43 +02:00 committed by Tomáš Hozza
parent a9caab3b1e
commit d0094bbe2b

View file

@ -1075,6 +1075,17 @@ def test_depsolve(tmp_path, repo_servers, dnf_config, detect_fn, test_case):
except RuntimeError as e:
pytest.skip(e)
# pylint: disable=fixme
# TODO: remove this once dnf5 implementation is fixed
dnf5_broken_test_cases = [
"basic_pkg_group_with_excludes",
"install_pkg_excluded_in_another_transaction",
"error_pkg_not_in_enabled_repos",
]
if dnf_config == '{"use_dnf5": true}' and test_case["id"] in dnf5_broken_test_cases:
pytest.skip("This test case is known to be broken with dnf5")
transactions = test_case["transactions"]
repo_servers_copy = repo_servers.copy()