File tree Expand file tree Collapse file tree
samples/boards/nordic/coresight_stm/pytest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,12 @@ def nrfutil_dictionary_from_serial(
203203 try :
204204 # run nrfutil trace in background non-blocking
205205 logger .info (f"Executing:\n { cmd } " )
206- proc = subprocess .Popen (cmd .split (), stdout = subprocess .DEVNULL )
206+ proc = subprocess .Popen (cmd .split (),
207+ stdin = subprocess .PIPE ,
208+ stdout = subprocess .PIPE ,
209+ stderr = subprocess .STDOUT ,
210+ encoding = 'UTF-8' ,
211+ errors = 'replace' )
207212 except OSError as exc :
208213 logger .error (f"Unable to start nrfutil trace:\n { cmd } \n { exc } " )
209214 try :
@@ -212,6 +217,8 @@ def nrfutil_dictionary_from_serial(
212217 pass
213218 finally :
214219 _kill (proc )
220+ outs , errs = proc .communicate ()
221+ logger .info (f"{ outs = } \n { errs = } " )
215222
216223
217224def test_sample_STM_decoded (dut : DeviceAdapter ):
You can’t perform that action at this time.
0 commit comments