Allow changing the minion count with an environment variable

This commit is contained in:
MKLeb 2022-07-19 17:20:44 -04:00 committed by Megan Wilhite
parent 19e49400f0
commit 4c9f345a95

View file

@ -1,3 +1,4 @@
import os
from contextlib import ExitStack
import pytest
@ -39,7 +40,8 @@ def salt_cli(salt_master):
@pytest.fixture(scope="package")
def minion_count():
return 20
# Allow this to be changed via an environment variable if needed
return int(os.environ.get("SALT_CI_MINION_SWARM_COUNT", 20))
@pytest.fixture(scope="package")