Improve jinja2 test coverage. (#20533)

* Run `template` test on latest jinja2 version.
* Update jinja2 install for groupby_filter.
* Clean test output dir for each test.
This commit is contained in:
Matt Clay 2017-01-20 16:38:52 -08:00 committed by GitHub
parent d87ee022bb
commit 61e6e7868c
8 changed files with 52 additions and 21 deletions

View file

@ -426,10 +426,6 @@ def command_integration_filtered(args, targets):
test_dir = os.path.expanduser('~/ansible_testing')
if not args.explain:
remove_tree(test_dir)
make_dirs(test_dir)
if any('needs/ssh/' in target.aliases for target in targets):
max_tries = 20
display.info('SSH service required for tests. Checking to make sure we can connect.')
@ -461,6 +457,11 @@ def command_integration_filtered(args, targets):
while tries:
tries -= 1
if not args.explain:
# create a fresh test directory for each test target
remove_tree(test_dir)
make_dirs(test_dir)
try:
if target.script_path:
command_integration_script(args, target)