mirror of https://github.com/ansible/ansible.git
Revert "ansible-test - Fix subprocess management. (#77638)"
This reverts commit 62d03c8e75
.
pull/77663/head
parent
e2d54d3594
commit
26fd5a8c3a
@ -1,10 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-test - Subprocesses are now isolated from the stdin, stdout and stderr of ansible-test.
|
||||
This avoids issues with subprocesses tampering with the file descriptors, such as SSH making them non-blocking.
|
||||
As a result of this change, subprocess output from unit and integration tests on stderr now go to stdout.
|
||||
- ansible-test - Subprocesses no longer have access to the TTY ansible-test is connected to, if any.
|
||||
This maintains consistent behavior between local testing and CI systems, which typically do not provide a TTY.
|
||||
Tests which require a TTY should use pexpect or another mechanism to create a PTY.
|
||||
minor_changes:
|
||||
- ansible-test - Blocking mode is now enforced for stdin, stdout and stderr.
|
||||
If any of these are non-blocking then ansible-test will exit during startup with an error.
|
@ -1,2 +0,0 @@
|
||||
context/controller
|
||||
shippable/posix/group1
|
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
assert not sys.stdin.isatty()
|
||||
assert not sys.stdout.isatty()
|
||||
assert not sys.stderr.isatty()
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
./runme.py
|
@ -1,7 +0,0 @@
|
||||
import sys
|
||||
|
||||
|
||||
def test_no_tty():
|
||||
assert not sys.stdin.isatty()
|
||||
assert not sys.stdout.isatty()
|
||||
assert not sys.stderr.isatty()
|
Loading…
Reference in New Issue