Repository navigation
test: find true and false where the host keeps them - #926
Merged
TheWitness merged 1 commit intoDec 4, 2026
Merged
TheWitness merged 1 commit into
TheWitness merged 1 commit into
Conversation
inlineOutcomeProvider ran /bin/true and /bin/false. macOS has them only in /usr/bin, so the command exited 127 and the success case failed with a WARNING; the failure case passed for the wrong reason. Alpine has them only in /bin, so the directory is chosen when the provider runs. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Dec 4, 2026
TheWitness
left a comment
Member
There was a problem hiding this comment.
Reviewed. The provider now resolves true/false from /bin or /usr/bin, and the other cases already use paths that exist on both systems. The suite passes merged with current develop (754 tests).
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.



Problem
inlineOutcomeProviderinTholdCommandExecutionTestruns/bin/trueand/bin/false. macOS has them only in/usr/bin, so the command exits 127 and "success without output" fails with a WARNING where a NOTE is expected. "failure without output" passes there for the wrong reason.Fix
The provider picks the directory when it runs:
/binif/bin/trueis executable, otherwise/usr/bin. A fixed/usr/binpath would break on Alpine, which has them only in/bin. Test-only change; the cases still run a real binary by absolute path.Verification
TholdCommandExecutionTest17 passed./usr/bin/trueand/usr/bin/falseexist there.Fixes #925