From 4f51852b5eaeb12d1100665877294e9f0e4c2fe0 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 10 Sep 2019 15:49:40 -0700 Subject: [PATCH] [stable-2.9] Fix ansible-test to ignore `tests/output/`. (#62084) The `test/results/` directory for Ansible test output was already ignored when not using git. When Ansible Collections were switched to `tests/output/` the ignore entry was previously overlooked. (cherry picked from commit f110abb) Co-authored-by: Matt Clay --- changelogs/fragments/ansible-test-ignore-tests-output.yml | 2 ++ test/lib/ansible_test/_internal/provider/source/unversioned.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/ansible-test-ignore-tests-output.yml diff --git a/changelogs/fragments/ansible-test-ignore-tests-output.yml b/changelogs/fragments/ansible-test-ignore-tests-output.yml new file mode 100644 index 00000000000..3c9ab8b8d43 --- /dev/null +++ b/changelogs/fragments/ansible-test-ignore-tests-output.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test now properly ignores the ``tests/output//`` directory when not using git diff --git a/test/lib/ansible_test/_internal/provider/source/unversioned.py b/test/lib/ansible_test/_internal/provider/source/unversioned.py index 8ed0ab7a465..225152a7abc 100644 --- a/test/lib/ansible_test/_internal/provider/source/unversioned.py +++ b/test/lib/ansible_test/_internal/provider/source/unversioned.py @@ -48,6 +48,9 @@ class UnversionedSource(SourceProvider): 'cache', 'output', ), + 'tests': ( + 'output', + ), 'docs/docsite': ( '_build', ),