Skip to content

Commit 6ec7908

Browse files
danieldegrassekartben
authored andcommitted
scripts: west_commands: runners: do not print newline in telnet decode
Remove the newline printed after decoding a block of telnet data from the server in the "pure python" implementation used when netcat is not available. This newline print is incorrect as it is not in the RTT output being produced from the device, and can impact programs like twister which expect specific strings in the output and cannot handle these strings being split across two lines Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
1 parent c4dcb17 commit 6ec7908

File tree

1 file changed

+1
-1
lines changed
  • scripts/west_commands/runners

1 file changed

+1
-1
lines changed

scripts/west_commands/runners/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,4 +975,4 @@ def run_telnet_client(self, host: str, port: int, active_sock=None) -> None:
975975
elif key.fileobj == sock:
976976
resp = sock.recv(2048)
977977
if resp:
978-
print(resp.decode())
978+
print(resp.decode(), end='')

0 commit comments

Comments
 (0)