diff --git a/changelogs/fragments/ansible-test-test-source-message.yml b/changelogs/fragments/ansible-test-test-source-message.yml new file mode 100644 index 00000000000..71999097f1d --- /dev/null +++ b/changelogs/fragments/ansible-test-test-source-message.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test now shows the correct source path instead of ``%s`` for collection role based test targets when the ``-v`` option is used diff --git a/test/lib/ansible_test/_internal/provider/layout/collection.py b/test/lib/ansible_test/_internal/provider/layout/collection.py index 77fc43e0460..7740b996442 100644 --- a/test/lib/ansible_test/_internal/provider/layout/collection.py +++ b/test/lib/ansible_test/_internal/provider/layout/collection.py @@ -98,7 +98,7 @@ class CollectionLayout(LayoutProvider): messages.info.append('Falling back to tests in "%s" because "%s" was not found.' % (legacy_integration_path, modern_integration_path)) integration_targets_path = legacy_integration_path elif modern_integration_path_found: - messages.info.append('Loading tests from "%s".') + messages.info.append('Loading tests from "%s".' % modern_integration_path) integration_targets_path = modern_integration_path else: messages.error.append('Cannot run integration tests without "%s" or "%s".' % (modern_integration_path, legacy_integration_path))