Deprecate looponfail plugin

Fix #826
This commit is contained in:
Bruno Oliveira
2022-10-22 10:24:20 -03:00
parent f2064873fd
commit 8b0856a986
5 changed files with 19 additions and 6 deletions

View File

@@ -46,7 +46,10 @@ def pytest_cmdline_main(config):
def looponfail_main(config: pytest.Config) -> None:
remotecontrol = RemoteControl(config)
rootdirs = [Path(root) for root in config.getini("looponfailroots")]
config_roots = config.getini("looponfailroots")
if not config_roots:
config_roots = [Path.cwd()]
rootdirs = [Path(root) for root in config_roots]
statrecorder = StatRecorder(rootdirs)
try:
while 1: