Change location of collections tests.

The directories used for collections tests are changing as follows:

`test/` -> `tests/`
`test/results/` -> `tests/output/`

This is a breaking change for collections tests executed by ansible-test.
All collections will need to be updated to use the new directory.

The `tests/output/` directory should be added to the `.gitignore` or equivalent in each collection.

This change is being made before the first pre-release of Ansible 2.9 since ansible-test has not yet been shipped.
Using the `tests/` directory matches the other collections directories `plugins/` and `roles/`.

This resolves https://github.com/ansible/ansible/issues/60218
pull/61504/head
Matt Clay 5 years ago
parent 460b583dff
commit 81ca44b7e5

@ -44,11 +44,11 @@ class CollectionLayout(LayoutProvider):
namespace=collection_namespace, namespace=collection_namespace,
root=collection_root, root=collection_root,
), ),
test_path='test', test_path='tests',
results_path='test/results', results_path='tests/output',
sanity_path='test/sanity', sanity_path='tests/sanity',
integration_path='test/integration', integration_path='tests/integration',
unit_path='test/unit', unit_path='tests/unit',
unit_module_path='test/unit/plugins/modules', unit_module_path='tests/unit/plugins/modules',
unit_module_utils_path='test/unit/plugins/module_utils', unit_module_utils_path='tests/unit/plugins/module_utils',
) )

@ -46,6 +46,7 @@ class UnversionedSource(SourceProvider):
'test': ( 'test': (
'results', 'results',
'cache', 'cache',
'output',
), ),
'docs/docsite': ( 'docs/docsite': (
'_build', '_build',

Loading…
Cancel
Save