New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix possible issue with test_groupadd #49794
Conversation
Why did these two platforms diverge in the first place? Would it make sense to just bring them in line with each other? |
@cachedout agree they should be the same. The state expects a true or false from all platforms as its called in a middle of an Normal state outputs |
However the above seems wrong. The group.add or group.* on all platforms should raise a What should the standard be? i.e. more like pkg state? Windows |
Now returns bool instead of dict |
I agree with @rallytime . I think we should consider a change in the structure in a major release but not change it here. |
b43439a
to
3d3b67d
Compare
I reverted back to just the original test fix I did. I created another PR against the Fluorine branch with the fixes I had before. #50086 |
What does this PR do?
In Windows, the
group.members
function returns a dicts where theresult
key returns true if successful. On Linux it just returns True or False. The way the test was written the check would always be True even on failure because an empty Dict results in True if you're just checking withassertTrue
.What issues does this PR fix or reference?
This checks the value in
result
on WindowsTests written?
Yes
Commits signed with GPG?
Yes