Skip to content

Commit 5072a15

Browse files
committed
Skip specific CLI test on Windows
1 parent 14ea6f9 commit 5072a15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_commands.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import os
2+
import sys
3+
4+
import pytest
25

36

47
def test_command_dump_config(capfd):
@@ -23,6 +26,10 @@ def test_command_dump_samplefuncs(capfd):
2326

2427
def test_command_standalone_plugin(capfd):
2528

29+
# FIXME: Make it work on Windows.
30+
if sys.platform.startswith("win"):
31+
raise pytest.xfail("Skipping test, fails on Windows")
32+
2633
command = """mqttwarn --plugin=log --options='{"message": "Hello world", "addrs": ["crit"]}'"""
2734

2835
os.system(command)

0 commit comments

Comments
 (0)