Don't rerun the packages tests on failures by default

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-12-07 11:44:45 +00:00 committed by Daniel Wozniak
parent 0f146ef77f
commit 9fcd0fab17

View file

@ -1880,6 +1880,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
# Don't print the system information, not the test selection on reruns
global PRINT_TEST_SELECTION