Gate rerun code logic behind RERUN_FAILURES env variable check

This commit is contained in:
Pedro Algarvio 2024-05-07 11:21:48 +01:00
parent 8a378cbc4b
commit 46ccd24ca4

View file

@ -1944,6 +1944,9 @@ def ci_test_onedir_pkgs(session):
try:
_pytest(session, coverage=False, cmd_args=pytest_args, env=env)
except CommandFailed:
if os.environ.get("RERUN_FAILURES", "0") == "0":
# Don't rerun on failures
return
cmd_args = chunks["install"]
pytest_args = (
common_pytest_args[:]