-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
mailutils: 2.2 -> 3.2 #27595
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
mailutils: 2.2 -> 3.2 #27595
Conversation
Some tests fail on my system:
Do they require dns resolving perhaps? |
I have checked that the tests pass even without internet. (However, they depend on the system state: I had to include a patch for the test that reads |
Here is the failing testcase: https://dl.thalheim.io/Z_TTsDyj594E0QzDXlR7LA/testsuite.log |
Tests fail with the message |
mv readmsg/tests/*-$f readmsg/tests/$f | ||
done | ||
# Disable comsat tests that fail without tty in the sandbox. | ||
tty -s || echo > comsat/tests/testsuite.at |
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.
Would it be possible to use script
here so we can run the tests?
There are several tasks for which I use something like the following:
# shell quote the given arguments.
function quote {
# quote each argument, interposing a space each time
local quoted="$(printf "%q " "$@")"
# nuke the trailing space
quoted="${quoted%?}"
printf "%s" "$quoted"
}
# use `script` to run the given command under a new tty.
function faketty {
if [[ "$(uname)" == "Darwin" ]]; then
script -q /dev/null "$@"
else
script -qefc "$(quote "$@")" /dev/null
fi
}
Dunno if it's worth it or not for these tests.
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.
... unless the problem is that a pty can't be allocated in our sandbox :).
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.
I believe this would work, thank you for sharing this! However, I do not plan to update mailutils definition soon.
Motivation for this change
This is a simpler alternative to #27580.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)