Skip to content

chgrp: fix error message for --from nonexisting_group GROUP - #13490

Merged
sylvestre merged 3 commits into
uutils:mainfrom
cakebaker:chgrp_fix_test
Jul 22, 2026
Merged

chgrp: fix error message for --from nonexisting_group GROUP#13490
sylvestre merged 3 commits into
uutils:mainfrom
cakebaker:chgrp_fix_test

Conversation

@cakebaker

@cakebaker cakebaker commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

I noticed that test_from_with_invalid_group fails on my machine with Arch Linux whereas it works in the CI. The reason was that the test assumed a "staff" group exists, which is not the case on Arch Linux, and so the code didn't return the expected error message.

This PR applies three changes:

  • in the test, it uses "nobody" as group that is assumed to exist
  • it ensures the error message is the same for --from nonexisting_group GROUP, independent of whether GROUP exists
  • in the test, it removes unreachable code on Android

because "staff" doesn't exist on Arch Linux and so
test_from_with_invalid_group fails there
and show the same msg for "--from nonexisting GROUP", independent of whether GROUP exists
@sylvestre
sylvestre merged commit be96f5d into uutils:main Jul 22, 2026
164 checks passed
@cakebaker
cakebaker deleted the chgrp_fix_test branch July 22, 2026 09:51
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.

2 participants