Discover new tests in run_tests.py (#64246)
authorNikita Shulga <nshulga@fb.com>
Wed, 1 Sep 2021 00:19:11 +0000 (17:19 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Sep 2021 00:32:55 +0000 (17:32 -0700)
commitc2da103fe69d493dfce48b7075e56643ac8fce58
treeb4b16107c7d3210e0447e887e344d1df67bff077
parent0457a85d459479881ad07e84a8e9f53bf82bb48d
Discover new tests in run_tests.py (#64246)

Summary:
Introduce `discover_tests` function that globs for all Python files
starting with `test_` in test folder excluding subfolders which are
executed differently

Fixes https://github.com/pytorch/pytorch/issues/64178

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64246

Reviewed By: walterddr, seemethere

Differential Revision: D30661652

Pulled By: malfet

fbshipit-source-id: a52e78ec717b6846add267579dd8d9ae75326bf9
test/run_test.py [changed mode: 0755->0644]