]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
try to restore color to pytest
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 11 Dec 2022 20:25:34 +0000 (15:25 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 11 Dec 2022 20:25:34 +0000 (15:25 -0500)
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

tox.ini

diff --git a/tox.ini b/tox.ini
index c9a769f32c8fda7d953e1c9e58af922ba2701e9d..8b744d7c6fdcd542bc7a7bfd576926377d8ba85b 100644 (file)
--- 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}