mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Gate rerun code logic behind RERUN_FAILURES
env variable check
This commit is contained in:
parent
8a378cbc4b
commit
46ccd24ca4
1 changed files with 3 additions and 0 deletions
|
@ -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[:]
|
||||
|
|
Loading…
Add table
Reference in a new issue