From fa18566c3ec7ca75e4b10751b8b6b2abc8963652 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 3 Aug 2020 13:52:11 -0700 Subject: [PATCH] [stable-2.10] Fix ansible-test self-test change classification. Changes to sanity and unit tests now trigger the ansible-test self-test integration tests. No changelog entry since this only affects tests for ansible itself and not collections. (cherry picked from commit b53e7f8720f41b8ccae728362f041639179f2d84) Co-authored-by: Matt Clay --- test/lib/ansible_test/_internal/classification.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lib/ansible_test/_internal/classification.py b/test/lib/ansible_test/_internal/classification.py index cc6fe643a2c..c2f5158163b 100644 --- a/test/lib/ansible_test/_internal/classification.py +++ b/test/lib/ansible_test/_internal/classification.py @@ -769,26 +769,31 @@ class PathMapper: if path.startswith('test/lib/ansible_test/_internal/sanity/'): return { 'sanity': 'all', # test infrastructure, run all sanity checks + 'integration': 'ansible-test', # run ansible-test self tests } if path.startswith('test/lib/ansible_test/_data/sanity/'): return { 'sanity': 'all', # test infrastructure, run all sanity checks + 'integration': 'ansible-test', # run ansible-test self tests } if path.startswith('test/lib/ansible_test/_internal/units/'): return { 'units': 'all', # test infrastructure, run all unit tests + 'integration': 'ansible-test', # run ansible-test self tests } if path.startswith('test/lib/ansible_test/_data/units/'): return { 'units': 'all', # test infrastructure, run all unit tests + 'integration': 'ansible-test', # run ansible-test self tests } if path.startswith('test/lib/ansible_test/_data/pytest/'): return { 'units': 'all', # test infrastructure, run all unit tests + 'integration': 'ansible-test', # run ansible-test self tests } if path.startswith('test/lib/ansible_test/_data/requirements/'):