Revert "Reduce pytest prints (#117069)"

This reverts commit 2f89ef23007626aca1a577a4a388e315253c834f.

Reverted https://github.com/pytorch/pytorch/pull/117069 on behalf of https://github.com/clee2000 due to distributed tests are not printing items ([comment](https://github.com/pytorch/pytorch/pull/117069#issuecomment-1899433816))
This commit is contained in:
PyTorch MergeBot
2024-01-19 00:27:03 +00:00
parent a468b9fbdf
commit 77cfacab55
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: