From: Daniele Varrazzo Date: Fri, 14 Jan 2022 03:17:15 +0000 (+0100) Subject: Don't reset the random seed re-running failed tests X-Git-Tag: pool-3.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f4b888cfc23c38203240a911401ab4067c0556;p=thirdparty%2Fpsycopg.git Don't reset the random seed re-running failed tests We don't want to make them pass because we didn't like the random draw. It's not best of three. --- diff --git a/psycopg/tox.ini b/psycopg/tox.ini index 3a53de6fb..6561ed7b1 100644 --- a/psycopg/tox.ini +++ b/psycopg/tox.ini @@ -17,8 +17,8 @@ isolated_build = True changedir = .. commands = -python -bb -m pytest {posargs} - -python -bb -m pytest --lf --lfnf=none --no-collect-ok {posargs} - python -bb -m pytest --lf --lfnf=none --no-collect-ok {posargs} + -python -bb -m pytest --lf --lfnf=none --no-collect-ok --randomly-seed=last {posargs} + python -bb -m pytest --lf --lfnf=none --no-collect-ok --randomly-seed=last {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL PIP_CONSTRAINT extras = test deps = diff --git a/psycopg_c/tox.ini b/psycopg_c/tox.ini index caae6287a..3703e0307 100644 --- a/psycopg_c/tox.ini +++ b/psycopg_c/tox.ini @@ -6,8 +6,8 @@ isolated_build = True changedir = .. commands = -python -bb -m pytest {posargs} - -python -bb -m pytest --lf --lfnf=none --no-collect-ok {posargs} - python -bb -m pytest --lf --lfnf=none --no-collect-ok {posargs} + -python -bb -m pytest --lf --lfnf=none --no-collect-ok --randomly-seed=last {posargs} + python -bb -m pytest --lf --lfnf=none --no-collect-ok --randomly-seed=last {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL PIP_CONSTRAINT deps = -e {toxinidir}/../psycopg[test]