diff options
Diffstat (limited to 'bin/ansible-test')
-rwxr-xr-x | bin/ansible-test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ansible-test b/bin/ansible-test index 95209493..930654fc 100755 --- a/bin/ansible-test +++ b/bin/ansible-test @@ -27,6 +27,9 @@ def main(args=None): raise SystemExit('This version of ansible-test cannot be executed with Python version %s. Supported Python versions are: %s' % ( version_to_str(sys.version_info[:3]), ', '.join(CONTROLLER_PYTHON_VERSIONS))) + if any(not os.get_blocking(handle.fileno()) for handle in (sys.stdin, sys.stdout, sys.stderr)): + raise SystemExit('Standard input, output and error file handles must be blocking to run ansible-test.') + # noinspection PyProtectedMember from ansible_test._internal import main as cli_main |