mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Whitelist the test for Windows
This commit is contained in:
parent
c2bb925bc6
commit
f8596ba15c
1 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,11 @@ from salt.exceptions import CommandExecutionError
|
|||
from tests.support.mock import MagicMock, Mock, MockTimedProc, mock_open, patch
|
||||
from tests.support.runtests import RUNTIME_VARS
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.core_test,
|
||||
pytest.mark.windows_whitelisted,
|
||||
]
|
||||
|
||||
DEFAULT_SHELL = "foo/bar"
|
||||
MOCK_SHELL_FILE = "# List of acceptable shells\n\n/bin/bash\n"
|
||||
|
||||
|
@ -1134,7 +1139,7 @@ def test_prep_powershell_cmd_script():
|
|||
"-ExecutionPolicy",
|
||||
"Bypass",
|
||||
"-Command",
|
||||
f"& {script}",
|
||||
f"& {script}; exit $LASTEXITCODE",
|
||||
]
|
||||
assert ret == expected
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue