]> 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:31 +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 a4bf83040ca678d4cd1f1a0984b82a1ad1ba8666..79961d82226457f972ba6d99b74f8d9f5096b83e 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 366fbc4b26c3864d540bb7d4e1d92cb3e6231679..99ae58df1d4e37048381169180afe9548354405d 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]