Skip to content

Commit

Permalink
Skip cmd.script tests on windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
barneysowood committed Jan 17, 2025
1 parent b0a0665 commit 7b44449
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/modules/test_cmdmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def test_blacklist_glob(self):
)

@pytest.mark.slow_test
@pytest.mark.skip_on_windows
def test_script(self):
"""
cmd.script
Expand All @@ -235,6 +236,7 @@ def test_script(self):
self.assertEqual(ret["stdout"], args)

@pytest.mark.slow_test
@pytest.mark.skip_on_windows
def test_script_query_string(self):
"""
cmd.script
Expand All @@ -245,6 +247,7 @@ def test_script_query_string(self):
self.assertEqual(ret["stdout"], args)

@pytest.mark.slow_test
@pytest.mark.skip_on_windows
def test_script_retcode(self):
"""
cmd.script_retcode
Expand All @@ -254,6 +257,7 @@ def test_script_retcode(self):
self.assertEqual(ret, 0)

@pytest.mark.slow_test
@pytest.mark.skip_on_windows
def test_script_cwd(self):
"""
cmd.script with cwd
Expand All @@ -267,6 +271,7 @@ def test_script_cwd(self):
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
Expand Down

0 comments on commit 7b44449

Please sign in to comment.