mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40: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.mock import MagicMock, Mock, MockTimedProc, mock_open, patch
|
||||||
from tests.support.runtests import RUNTIME_VARS
|
from tests.support.runtests import RUNTIME_VARS
|
||||||
|
|
||||||
|
pytestmark = [
|
||||||
|
pytest.mark.core_test,
|
||||||
|
pytest.mark.windows_whitelisted,
|
||||||
|
]
|
||||||
|
|
||||||
DEFAULT_SHELL = "foo/bar"
|
DEFAULT_SHELL = "foo/bar"
|
||||||
MOCK_SHELL_FILE = "# List of acceptable shells\n\n/bin/bash\n"
|
MOCK_SHELL_FILE = "# List of acceptable shells\n\n/bin/bash\n"
|
||||||
|
|
||||||
|
@ -1134,7 +1139,7 @@ def test_prep_powershell_cmd_script():
|
||||||
"-ExecutionPolicy",
|
"-ExecutionPolicy",
|
||||||
"Bypass",
|
"Bypass",
|
||||||
"-Command",
|
"-Command",
|
||||||
f"& {script}",
|
f"& {script}; exit $LASTEXITCODE",
|
||||||
]
|
]
|
||||||
assert ret == expected
|
assert ret == expected
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue