Skip to content

Fix incorrect label inheritance logic in Test.Init()#59

Open
prjanitor wants to merge 1 commit intolinuxkit:masterfrom
prjanitor:prjanitor/8d401a25064fe647b34b2941b02f2d8e584b6e13
Open

Fix incorrect label inheritance logic in Test.Init()#59
prjanitor wants to merge 1 commit intolinuxkit:masterfrom
prjanitor:prjanitor/8d401a25064fe647b34b2941b02f2d8e584b6e13

Conversation

@prjanitor
Copy link
Copy Markdown

The label inheritance logic in Test.Init() was incorrectly copying the value from parent labels to child labels. This caused the child's label map to store the parent's boolean values instead of setting them to true.

The fix changes the loops to only iterate over keys (not values) and sets inherited labels to true, which is the correct semantic meaning for a label that exists.


This PR was generated by PRJanitor — an automated tool that finds and fixes small bugs in open-source projects.

We respect your contribution guidelines — if your project doesn't accept bot PRs, we won't send more. You can also add a .github/prjanitor.yml file with enabled: false to opt out explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant