mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[td] try catch exception, do not run td if not results (#138087)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/138087 Approved by: https://github.com/wdvr
This commit is contained in:
committed by
PyTorch MergeBot
parent
dabe2a3c3b
commit
f173623bb2
@ -1769,6 +1769,8 @@ def main():
|
||||
selected_tests = get_selected_tests(options)
|
||||
|
||||
test_prioritizations = import_results()
|
||||
if len(test_prioritizations.get_all_tests()) == 0:
|
||||
options.enable_td = False
|
||||
test_prioritizations.amend_tests(selected_tests)
|
||||
|
||||
os.makedirs(REPO_ROOT / "test" / "test-reports", exist_ok=True)
|
||||
|
Reference in New Issue
Block a user