Improve coverage of expect integration tests. (#30608)

This commit is contained in:
Matt Clay 2017-09-20 01:15:56 -07:00 committed by GitHub
commit 79839615e7
2 changed files with 116 additions and 4 deletions

View file

@ -1,3 +1,10 @@
import sys
from ansible.module_utils.six.moves import input
user_input = input('foo')
print(user_input)
prompts = sys.argv[1:] or ['foo']
for prompt in prompts:
user_input = input(prompt)
print(user_input)