[pytest-dev] Question about silencing pytest xdist plugin reporting
holger krekel
holger at merlinux.eu
Sat Nov 23 20:16:34 CET 2013
Hi Lenni,
On Thu, Nov 21, 2013 at 07:38 -0800, Lenni Kuff wrote:
> Hi,
> I am experimenting with using Pytest + Xdist and I was wondering if it is
> possible to completely/mostly silence the xdist logging? When running many
> tests in parallel there can be a lots of spew like:
>
> gw0 C / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9
> I / gw10 I / gw11 I / gw12 I / gw13 gw0 C / gw1 C ...
>
> I have been able to reduce the output a bit by adding the following into by
> conftest.py file, but can't figure out how to completely silence the output:
>
> def pytest_xdist_setupnodes(config, specs):
> config.option.verbose = 0
>
> Any help would be appreciated.
the pytest-xdist plugin could probably act on "config.option.verbosity"
which is a number that increases with "-v" and decreases with "-q".
Maybe consider a pull request as i don't think you can easily tweak
things through hooks or config options without changing some code.
best,
holger
> Thanks,
> Lenni
> _______________________________________________
> Pytest-dev mailing list
> Pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
More information about the Pytest-dev
mailing list