Skip to content

Commit

Permalink
Fix test that should be skipped on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 7, 2020
1 parent be8ece2 commit 2ff0dc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ def test_load_minion_config_from_environ_var(self, tempdir):
config = salt.config.minion_config(fpath)
self.assertEqual(config["log_file"], fpath)

@skipIf(
salt.utils.platform.is_windows(),
"You can't set an environment dynamically in Windows",
)
@with_tempdir()
def test_load_client_config_from_environ_var(self, tempdir):
env_root_dir = os.path.join(tempdir, "foo", "env")
Expand Down

0 comments on commit 2ff0dc8

Please sign in to comment.