On Wed, Oct 03, 2018 at 11:07:27PM -0300, Samuel Henrique wrote: > Hello, > > I need help debugging a FTBFS on capistrano[0]. > The report says it's failing some tests randomly, but on my machine it > fails everytime. I tried locally: with a simple `gbp buildpackage` the tests pass consistently. Under sbuild, however, they fail consistently. Looking at the failure messages, it looks like the failing tests are somehow poking at stdin. one difference between a simple `gbp buildpackage` and sbuild is that on the first one stdin is left alone, while under sbuild stdin is redirected. tried `gbp buildpackage < /dev/null` and it fails consistently the problem seems to be in lib/capistrano/configuration/question.rb, method `gets`. if I remove the `return unless $stdin.tty?` from there, the tests that failed before with `< /dev/null` now pass, but then there is a test for that specific behaviour that now fails. I think this is something to discuss with upstream. the key to reproduce is just to run the tests with `> /dev/null`
Attachment:
signature.asc
Description: PGP signature