mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
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:
parent
d87ee022bb
commit
61e6e7868c
8 changed files with 52 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue