mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip cmd.script tests on windows
Skips cmd.script tests on windows. These are using a python script that relies on the shebang in the script to work on Unix like OSes. That won't work on Windows.
This commit is contained in:
parent
b0a06655e4
commit
5fe28f00f9
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,7 @@ class CMDModuleTest(ModuleCase):
|
|||
)
|
||||
|
||||
@pytest.mark.slow_test
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_script(self):
|
||||
"""
|
||||
cmd.script
|
||||
|
@ -235,6 +236,7 @@ class CMDModuleTest(ModuleCase):
|
|||
self.assertEqual(ret["stdout"], args)
|
||||
|
||||
@pytest.mark.slow_test
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_script_query_string(self):
|
||||
"""
|
||||
cmd.script
|
||||
|
@ -245,6 +247,7 @@ class CMDModuleTest(ModuleCase):
|
|||
self.assertEqual(ret["stdout"], args)
|
||||
|
||||
@pytest.mark.slow_test
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_script_retcode(self):
|
||||
"""
|
||||
cmd.script_retcode
|
||||
|
@ -254,6 +257,7 @@ class CMDModuleTest(ModuleCase):
|
|||
self.assertEqual(ret, 0)
|
||||
|
||||
@pytest.mark.slow_test
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_script_cwd(self):
|
||||
"""
|
||||
cmd.script with cwd
|
||||
|
@ -267,6 +271,7 @@ class CMDModuleTest(ModuleCase):
|
|||
self.assertEqual(ret["stdout"], args)
|
||||
|
||||
@pytest.mark.slow_test
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_script_cwd_with_space(self):
|
||||
"""
|
||||
cmd.script with cwd
|
||||
|
|
Loading…
Add table
Reference in a new issue