Revert "Reduce pytest prints (#117069)"

This reverts commit 40dbd567e04483c671f9c897171bf9d1e7162b68.

Reverted https://github.com/pytorch/pytorch/pull/117069 on behalf of https://github.com/clee2000 due to need to handle timeout expired better ([comment](https://github.com/pytorch/pytorch/pull/117069#issuecomment-1901270953))
This commit is contained in:
PyTorch MergeBot
2024-01-19 23:07:51 +00:00
parent 5538b37a06
commit f684e44fd6
7 changed files with 46 additions and 122 deletions

View File

@ -19,7 +19,6 @@ import copy
import json
import re
from collections import defaultdict
from pytest_shard_custom import PytestShardPlugin, pytest_addoptions as shard_addoptions
# a lot of this file is copied from _pytest.junitxml and modified to get rerun info
@ -85,7 +84,6 @@ def pytest_addoption(parser: Parser) -> None:
"Emit XML for schema: one of legacy|xunit1|xunit2",
default="xunit2",
)
shard_addoptions(parser)
def pytest_configure(config: Config) -> None:
@ -107,8 +105,6 @@ def pytest_configure(config: Config) -> None:
config.option.stepcurrent = config.getoption("stepcurrent_skip")
if config.getoption("stepcurrent"):
config.pluginmanager.register(StepcurrentPlugin(config), "stepcurrentplugin")
if config.getoption("num_shards"):
config.pluginmanager.register(PytestShardPlugin(config), "pytestshardplugin")
def pytest_unconfigure(config: Config) -> None: