Repository navigation
Isolate pacman tests from inherited LC_ALL - #12747
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pacman helper test expects its baseline invocation to omit LC_ALL, but the real helper correctly forwards an inherited value. Running the test under LC_ALL=C.UTF-8 therefore fails that expectation.
Unset LC_ALL before the baseline case. Keep the separate LC_ALL=C case that verifies explicit locale forwarding. Only the test changes.
Validation: reproduced the failure before the change. Both checks now pass with inherited LC_ALL=C.UTF-8 and with LC_ALL absent, producing identical results. The sudo stub records the command; no package transaction runs. git diff --check passes.
Claude reviewed commit 6f9f31e and found no actionable issues. It confirmed the baseline is isolated from the inherited variable and the explicit behavior checks remain effective.