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
Some tests fail if stdin is redirected #2032
Comments
Thanks for the detailed report! First impression, we could make a slight change to |
I'd be curious if there was a way of wrapping the test execution in a bash instance so that it has a tty available… |
This allows the tests to run even in a situation where stdin isn't available, for example when the test is run with `< /dev/null` as is the case for some packaging scripts. Fixes #2032
What do you think of this fix? #2033 |
This allows the tests to run even in a situation where stdin isn't available, for example when the test is run with `< /dev/null` as is the case for some packaging scripts. Fixes #2032
I added them and some tests stopped failing (13 vs 7 failures): The 7 failures are all like: So I wonder if the left ones are not related to the stdin difference but rather to something that debhelper is doing with ruby packages and its relation with gems/deps. What do you think? Thanks for your fast response and quick proposed solutions :) |
@samueloph could you open a new issue for the |
@mattbrictson of course, I'm gonna gather more information about the stdout problem and then I'm gonna open a new issue for that one. Thank you! |
Took a look at other failures, and it looks like its related the way debhelper deals with ruby and its gems, it's doesn't look like it's gonna affect anything and I will disable these tests. Thanks, |
Steps to reproduce
Run the tests with
> /dev/null
Expected behavior
All the tests passes
Actual behavior
https://salsa.debian.org/ruby-team/capistrano/-/jobs/304495
This is a problem that we've found on Debian a little but more than 1 year ago, I didn't report it earlier because it doesn't look serious.
Some of the tests fail under our testing environment, probably because of input redirection, I started a thread on the ruby team to talk about it and this was the reply I've got from one of the team members:
You can see the log of the failures here:
https://salsa.debian.org/ruby-team/capistrano/-/jobs/304495
And the patch we apply on Debian to circumvent that (disable the failing tests):
https://salsa.debian.org/ruby-team/capistrano/blob/fcd89e1042db23548771112abb8b5daabf32fc5c/debian/patches/skip_tests.patch
Thanks for making capistrano!
The text was updated successfully, but these errors were encountered: