We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b1c25 commit fee676fCopy full SHA for fee676f
tests/subsys/swo/pytest/test_swo.py
@@ -119,11 +119,11 @@ def test_swo_logging(dut: DeviceAdapter):
119
try:
120
logger.info(f"Executing:\n{cmd}")
121
proc = subprocess.Popen(
122
- cmd,
+ cmd.split(),
123
+ stdin=subprocess.PIPE,
124
stdout=subprocess.PIPE,
125
stderr=subprocess.STDOUT,
- encoding="UTF-8",
126
- shell=True,
+ encoding='UTF-8',
127
)
128
except OSError as exc:
129
logger.error(f"Unable to start JLinkSWOViewerCLExe:\n{cmd=}\n{exc=}")
@@ -134,6 +134,8 @@ def test_swo_logging(dut: DeviceAdapter):
134
pass
135
finally:
136
_kill(proc)
137
+ outs, errs = proc.communicate()
138
+ logger.info(f"{outs=}\n{errs=}")
139
140
# read logs
141
with open(f"{log_filename}", errors="ignore") as log_file:
0 commit comments