ansible/test/integration/targets/pause/test-pause-background.yml
Sam Doran 4b8cb6582b
pause - do not hang if run in the background (#72065)
* 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.
2020-11-12 12:22:57 -05:00

10 lines
147 B
YAML

- name: Test pause in a background task
hosts: localhost
gather_facts: no
become: no
tasks:
- pause:
- pause:
seconds: 1