-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
test: fix hang when running tests that need parsing with --interactive
#13980
base: master
Are you sure you want to change the base?
Conversation
I had a bit of a hard time trying to come up with a testcase for this, also because the test harness does not seem to be prepared to pass arbitrary options to |
When running tests with `--interactive` we don't redirect stdin, stdout or stderr and instead pass them on to the user's console. This redirect causes us to hang in case the test in question needs parsing, like it is the case for TAP output, because we cannot read the process's stdout. Fix this hang by not parsing output when running in interactive mode.
4d27f58
to
217629d
Compare
The problem here is that TAP tests with
|
When running tests with
--interactive
we don't redirect stdin, stdout or stderr and instead pass them on to the user's console. This redirect causes us to hang in case the test in question needs parsing, like it is the case for TAP output, because we cannot read the process's stdout.Fix this hang by not parsing output when running in interactive mode.