Skip to content

Commit d6032a0

Browse files
committed
DNM testing
Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 1e841e3 commit d6032a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/boards/nordic/coresight_stm/pytest/test_stm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ def _nrfutil_dictionary_from_serial(
132132
cmd = (
133133
"nrfutil trace stm --database-config "
134134
f"{config_str} "
135-
f"--input-serialport {UART_PATH} --baudrate {UART_BAUDRATE} "
135+
f"--input-serialport {UART_PATH} "
136136
f"--output-ascii {decoded_file_name}"
137137
)
138138
try:
139139
# run nrfutil trace in background non-blocking
140140
logger.info(f"Executing:\n{cmd}")
141-
proc = subprocess.Popen(cmd.split(), stdout=subprocess.DEVNULL)
141+
proc = subprocess.run(cmd.split(), shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
142+
logger.info(f'out: {proc.stdout}\n')
143+
logger.info(f'err: {proc.stderr}\n')
142144
except OSError as exc:
143145
logger.error(f"Unable to start nrfutil trace:\n{cmd}\n{exc}")
144146
try:

0 commit comments

Comments
 (0)