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:
Barney Sowood 2025-01-17 23:05:31 +00:00 committed by Daniel Wozniak
parent b0a06655e4
commit 5fe28f00f9

View file

@ -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