From: Mike Bayer Date: Sun, 11 Dec 2022 20:25:34 +0000 (-0500) Subject: try to restore color to pytest X-Git-Tag: rel_1_9_0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5a7f33320d88363be18776a2076a19e600a593;p=thirdparty%2Fsqlalchemy%2Falembic.git try to restore color to pytest the problem here is that the color codes will come out in jenkins runs. see if jenkins maybe does something with that (filters or maybe even gives us color) Change-Id: I9c8660fa85fb216cae16e18b776f34b005d3ac51 --- diff --git a/tox.ini b/tox.ini index c9a769f3..8b744d7c 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ usedevelop= # only use --dropfirst option if we're *not* using -n; # if -n is used, we're working in brand new DBs anyway setenv= - BASECOMMAND=python -m pytest --rootdir {toxinidir} + BASECOMMAND=python -m pytest {tty:--color=yes} --rootdir {toxinidir} WORKERS={env:TOX_WORKERS:-n4} sqla079: WORKERS=--dropfirst cov: COVERAGE={[testenv]cov_args}