Move existing target determinator to tools (#63809)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63809

This moves out the modulefinder determinator to `tools/testing` since it is supposed to be CI-only. This also simplifies run_test.py a little bit.

Test Plan: Imported from OSS

Reviewed By: malfet, seemethere, janeyx99

Differential Revision: D30497438

Pulled By: driazati

fbshipit-source-id: 1d203037af5af6a20c1e7812da935e7cbb5cd82f
This commit is contained in:
driazati
2021-08-25 12:58:24 -07:00
committed by Facebook GitHub Bot
parent 7edeead796
commit ab5cf5a1eb
3 changed files with 241 additions and 217 deletions

View File

@ -30,7 +30,7 @@ class DeterminationTest(unittest.TestCase):
return [
test
for test in cls.TESTS
if run_test.determine_target(run_test.TARGET_DET_LIST, test, changed_files, DummyOptions())
if run_test.should_run_test(run_test.TARGET_DET_LIST, test, changed_files, DummyOptions())
]
def test_config_change_only(self):