ansible/test
Sam Doran 1c20029694
Fix ctrl+c in pause module and add tests (#40134)
* Fix all cases with pause and ctrl+c
 - naked:
	- pause:
 - with prompt
	- pause: prompt=hi
 - time wait
	- pause: seconds=60
 - time wait with prompt
	- pause: seconds=60 prompt=hi


Fixes #35372

* Use curses to control stdout
* Use curses to clear lines on interactive input
* Validate input for echo parameter and fail nicely if invalid
* Add integration tests for pause module using pexpect
* Use try except when trying to determine erase sequence to account for lack of TTY in containers in tests
* Improve output validation for regular paus test
* Accept two digit precision for pause length in test
* Check for seconds when seconds is specificed, minutes when minutes is specified
* Add test for no TTY mode

Co-authored by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored by: Brian Coca <brian.coca+git@gmail.com>
2018-05-21 10:04:43 -04:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration Fix ctrl+c in pause module and add tests (#40134) 2018-05-21 10:04:43 -04:00
legacy Use https for links to ansible.com domains. 2018-04-23 11:33:56 -07:00
results
runner [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
sanity removed_in: 2.6 is valid (#40399) 2018-05-18 15:32:31 +01:00
units Add the ability to specify an install_dir to the gem module (#38195) 2018-05-21 09:55:43 -04:00
utils Make docs-build sanity test disabled by default. 2018-05-09 17:55:00 -07:00