Skip to content

Commit 15f8ea7

Browse files
tests: on_target: no patched build on 9151dk
Patched build is only available for thingy91x. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 75b7661 commit 15f8ea7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/on_target/tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ def bin_file():
170170

171171
@pytest.fixture(scope="session")
172172
def hex_file_patched():
173+
# Skip if not thingy91x since patched build is only available for thingy91x
174+
if DUT_DEVICE_TYPE != 'thingy91x':
175+
pytest.skip("Patched build is only available for thingy91x")
176+
173177
# Search for the firmware hex file in the artifacts folder
174178
artifacts_dir = "artifacts/"
175179
hex_pattern = f"asset-tracker-template-{r"[0-9a-z\.]+"}-patched-{DUT_DEVICE_TYPE}-nrf91.hex"

0 commit comments

Comments
 (0)