mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user