Skip to content

Commit 3cc9875

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: subsys: swo: Minor test improvements
Fix error log refering to nrfutil instead of JLinkSWOViewerCLExe. Expand regex with log module name. Support both default nrf54lv10dk target and board rev. 0.2.0. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent eb6e836 commit 3cc9875

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/subsys/swo/pytest/test_swo.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _kill(proc):
2222
child.kill()
2323
proc.kill()
2424
except Exception as e:
25-
logger.exception(f'Could not kill nrfutil - {e}')
25+
logger.exception(f'Could not kill JLinkSWOViewerCLExe - {e}')
2626

2727

2828
def test_swo_logging(dut: DeviceAdapter):
@@ -35,7 +35,7 @@ def test_swo_logging(dut: DeviceAdapter):
3535
PLATFORM = dut.device_config.platform
3636
SEGGER_ID = dut.device_config.id
3737
COLLECT_TIMEOUT = 10.0
38-
EXPECTED = rf"\d+: Hello from {PLATFORM}"
38+
EXPECTED = rf"log_swo: \d+: Hello from {PLATFORM}"
3939

4040
logger.debug(f"{dut.device_config=}")
4141

@@ -80,6 +80,11 @@ def test_swo_logging(dut: DeviceAdapter):
8080
'cpufreq': 128000000,
8181
'swofreq': 1000000,
8282
},
83+
'[email protected]/nrf54lv10a/cpuapp': {
84+
'device': 'NRF54LV10A_M33',
85+
'cpufreq': 128000000,
86+
'swofreq': 1000000,
87+
},
8388
}
8489

8590
log_filename = f"{BUILD_DIR}/log_swo.txt"

0 commit comments

Comments
 (0)