-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
lib tests: Add system parameter #291936
lib tests: Add system parameter #291936
Conversation
See #291933 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first commit is good, I'd drop the second one though.
lib/fileset/tests.sh
Outdated
@@ -118,7 +118,7 @@ expectFailure() { | |||
die "$expr evaluated successfully to $result, but it was expected to fail" | |||
fi | |||
stderr=$(<"$tmp/stderr") | |||
if [[ ! "$stderr" =~ $expectedErrorRegex ]]; then | |||
if ! grep -E "$expectedErrorRegex" <<< $stderr; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this only seems to check the first line of the regex. It doesn't seem like grep
supports that. So I think we should stick with the bash regex match for now.
5b1a7f8
to
0a4d338
Compare
0a4d338
to
efd4a64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased to fix the conflict, looking good :)
Thanks! |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-291936-to-release-24.11 origin/release-24.11
cd .worktree/backport-291936-to-release-24.11
git switch --create backport-291936-to-release-24.11
git cherry-pick -x efd4a649fe39a4156bf31af24028770e02c94fb5 |
Not convinced that a backport is necessary actually. |
Description of changes
Make it succeed on darwin.
I do not know why bash in darwin fails to match, but I have too much on my plate to also debug bash itself.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.