mirror of https://github.com/ansible/ansible.git
* Consolidate logic for determining whether or not session is interactive
into a single function, is_interactive()
* Increase test coverage
I wasn't able to find a good way of simulating running a backgrounded test with CI since the
whole test is essentially run not in a TTY, which is similar enough to cause the new is_interactive()
function to always return false.
(cherry picked from commit 4b8cb6582b
)
Co-authored-by: Sam Doran <sdoran@redhat.com>
pull/72904/head
parent
c67d7225e9
commit
ab417f373a
@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- >
|
||||
pause - Fix indefinite hang when using a pause task on a background
|
||||
process (https://github.com/ansible/ansible/issues/32142)
|
@ -0,0 +1,10 @@
|
||||
- name: Test pause in a background task
|
||||
hosts: localhost
|
||||
gather_facts: no
|
||||
become: no
|
||||
|
||||
tasks:
|
||||
- pause:
|
||||
|
||||
- pause:
|
||||
seconds: 1
|
Loading…
Reference in New Issue