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
..
2018-05-17 23:21:30 +01:00
2018-02-12 15:24:45 -05:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-17 15:24:56 -07:00
2018-02-07 15:11:36 -08:00
2018-05-15 15:36:48 -04:00
2018-05-16 12:14:12 -07:00
2018-05-16 12:14:12 -07:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-17 10:06:24 -04:00
2018-05-17 10:06:24 -04:00
2018-02-15 09:01:02 -08:00
2018-05-17 15:24:56 -07:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-08 12:06:37 -04:00
2018-02-07 15:11:36 -08:00
2018-05-08 12:06:37 -04:00
2018-02-07 15:11:36 -08:00
2018-05-08 12:06:37 -04:00
2018-03-21 12:48:09 -04:00
2018-05-16 15:25:58 +01:00
2018-03-06 18:02:46 +00:00
2018-02-07 15:11:36 -08:00
2018-05-17 18:47:15 -04:00
2018-02-07 15:11:36 -08:00
2018-02-21 18:10:23 +10:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-04-03 09:59:13 -05:00
2018-02-07 15:11:36 -08:00
2018-05-16 14:59:01 +02:00
2018-02-07 15:11:36 -08:00
2018-05-16 14:59:01 +02:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-16 14:59:01 +02:00
2018-02-07 15:11:36 -08:00
2018-05-08 12:06:37 -04:00
2018-02-07 15:11:36 -08:00
2018-05-18 14:41:47 +05:30
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-18 14:41:47 +05:30
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2017-05-11 18:43:44 +05:30
2018-02-15 09:01:02 -08:00
2018-02-07 15:11:36 -08:00
2018-05-17 18:47:15 -04:00
2018-04-11 08:01:54 -06:00
2017-06-02 12:14:11 +01:00
2018-02-15 09:01:02 -08:00
2018-02-19 13:07:58 -08:00
2018-05-21 10:04:43 -04:00
2018-02-07 15:11:36 -08:00
2018-02-19 13:07:58 -08:00
2018-02-15 09:01:02 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-05-08 12:06:37 -04:00
2018-02-07 15:11:36 -08:00
2018-02-07 15:11:36 -08:00
2018-04-28 08:56:36 -07:00
2018-05-17 15:24:56 -07:00
2018-03-21 12:48:09 -04:00
2018-05-16 14:59:01 +02:00
2018-03-20 11:21:19 -05:00
2018-05-17 15:24:56 -07:00
2018-03-27 13:03:07 +10:00
2017-03-23 19:47:10 -07:00
2018-04-17 10:45:53 +10:00