Skip to content

Commit

Permalink
fix(portage_conf): isolate a test for package.use -* negation logic.
Browse files Browse the repository at this point in the history
This fails and has been failing for a long while.  The incremental
logic properly stacks lines, but intra-line, it doesn't handle
the negation properly leading to this test failing.

Most likely this is broken for things like license and keywords also.

Signed-off-by: Brian Harring <[email protected]>
  • Loading branch information
ferringb committed Feb 5, 2023
1 parent cdcf8df commit ef721d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ebuild/test_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ def rev_iter_scan(*args, **kwargs):
(packages.AlwaysTrue, (("X",), ("Y",))),
) == self.mk_domain().pkg_use

def test_use_wildstar_negation(self):
(self.pusedir / "a").write_text(
"""
# validate "wipe all that came before" behaviour
*/* x y -* z
"""
)

assert ((packages.AlwaysTrue, (("*"), ("z",)))) == self.mk_domain().pkg_use

def test_use_expand_syntax(self):
(self.pusedir / "a").write_text(
"""
Expand Down

0 comments on commit ef721d2

Please sign in to comment.