@@ -26,13 +26,15 @@ class CMDTest(ModuleCase, SaltReturnAssertsMixin):
2626 def setUpClass (cls ):
2727 cls .__cmd = "dir" if salt .utils .platform .is_windows () else "ls"
2828
29+ @pytest .mark .windows_whitelisted
2930 def test_run_simple (self ):
3031 """
3132 cmd.run
3233 """
3334 ret = self .run_state ("cmd.run" , name = self .__cmd , cwd = tempfile .gettempdir ())
3435 self .assertSaltTrueReturn (ret )
3536
37+ @pytest .mark .windows_whitelisted
3638 def test_run_output_loglevel (self ):
3739 """
3840 cmd.run with output_loglevel=quiet
@@ -45,6 +47,7 @@ def test_run_output_loglevel(self):
4547 )
4648 self .assertSaltTrueReturn (ret )
4749
50+ @pytest .mark .windows_whitelisted
4851 def test_run_simple_test_true (self ):
4952 """
5053 cmd.run test interface
@@ -54,6 +57,7 @@ def test_run_simple_test_true(self):
5457 )
5558 self .assertSaltNoneReturn (ret )
5659
60+ @pytest .mark .windows_whitelisted
5761 def test_run_hide_output (self ):
5862 """
5963 cmd.run with output hidden
@@ -106,6 +110,7 @@ def tearDown(self):
106110 super ().tearDown ()
107111
108112 @pytest .mark .slow_test
113+ @pytest .mark .windows_whitelisted
109114 def test_run_unless (self ):
110115 """
111116 test cmd.run unless
@@ -150,6 +155,7 @@ def test_run_unless_multiple_cmds(self):
150155 )
151156
152157 @pytest .mark .slow_test
158+ @pytest .mark .windows_whitelisted
153159 def test_run_creates_exists (self ):
154160 """
155161 test cmd.run creates already there
@@ -175,6 +181,7 @@ def test_run_creates_exists(self):
175181 self .assertEqual (len (ret [state_key ]["changes" ]), 0 )
176182
177183 @pytest .mark .slow_test
184+ @pytest .mark .windows_whitelisted
178185 def test_run_creates_new (self ):
179186 """
180187 test cmd.run creates not there
@@ -201,6 +208,7 @@ def test_run_creates_new(self):
201208 self .assertEqual (len (ret [state_key ]["changes" ]), 4 )
202209
203210 @pytest .mark .slow_test
211+ @pytest .mark .windows_whitelisted
204212 def test_run_redirect (self ):
205213 """
206214 test cmd.run with shell redirect
@@ -241,6 +249,7 @@ def tearDown(self):
241249 os .remove (self .state_file )
242250 super ().tearDown ()
243251
252+ @pytest .mark .windows_whitelisted
244253 def test_run_watch (self ):
245254 """
246255 test cmd.run watch
0 commit comments