Skip to content

Commit

Permalink
Mark test_macros_reinit as expected to fail on EL9 (#318)
Browse files Browse the repository at this point in the history
Mark test_macros_reinit as expected to fail on EL9

rpm -E %dump on EL9 doesn't list builtin macros so the test fails.

Reviewed-by: Maja Massarini
Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 20, 2023
2 parents f4d3437 + 86358e6 commit 2efab96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def test_macros_define():
}


@pytest.mark.xfail(
rpm.__version__ == "4.16.1.3",
reason="rpm 4.16.1.3 doesn't seem to dump builtin macros",
)
def test_macros_reinit():
Macros.reinit(MacroLevel.BUILTIN)
assert all(m.level == MacroLevel.BUILTIN for m in Macros.dump())

0 comments on commit 2efab96

Please sign in to comment.