Skip to content

Commit

Permalink
Fix ansible-test self-test change classification.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mattclay committed Aug 3, 2020
1 parent 7f62a9d commit b53e7f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/lib/ansible_test/_internal/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,26 +769,31 @@ def _classify_ansible(self, path): # type: (str) -> t.Optional[t.Dict[str, str]
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/'):
Expand Down

0 comments on commit b53e7f8

Please sign in to comment.