]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Don't reset the random seed re-running failed tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 14 Jan 2022 03:17:15 +0000 (04:17 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 14 Jan 2022 03:44:17 +0000 (04:44 +0100)
We don't want to make them pass because we didn't like the random draw.
It's not best of three.

psycopg/tox.ini
psycopg_c/tox.ini

index 3a53de6fb0e5a740374de76606a94bc23bc4bb6d..6561ed7b15539808c6f439d117d4ed1370977a70 100644 (file)
@@ -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 =
index caae6287a7bf44421a94dc49ac45ca4d1946126c..3703e03076d7c6a1b90ac4fbd86c5b4ab435f143 100644 (file)
@@ -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]