Improve checking for unusable sanity test ignores. (#59833)
Improve checking for unusable sanity test ignores. (#59833)

* Check sanity ignore paths against test paths.

This prevents ignores from being added for paths which will never be tested by the test being ignored or skipped.

* Fix sanity ignore handling for no/all targets.

This allows checking of ignores for tests which do not use a target list.

It also allows checking of the full ignore list on every test run for tests that always use all targets.

thaim/ansible,thaim/ansible