Skip to content

Commit 1c80d79

Browse files
mbolivar-nordicgalak
authored andcommitted
scripts: west_commands: skip bossac tests unless on linux
That's the only platform the tool is available. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 88f36bb commit 1c80d79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/west_commands/tests/test_bossac.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
import argparse
7+
import platform
78
from unittest.mock import patch, call
89

10+
import pytest
11+
912
from runners.bossac import BossacBinaryRunner
1013
from conftest import RC_KERNEL_BIN
1114

15+
if platform.system() != 'Linux':
16+
pytest.skip("skipping Linux-only bossac tests", allow_module_level=True)
17+
1218
TEST_BOSSAC_PORT = 'test-bossac-serial'
1319
TEST_OFFSET = 1234
1420
EXPECTED_COMMANDS = [

0 commit comments

Comments
 (0)