From ede05d6916d85f1a695823223c6e24b7d34e3299 Mon Sep 17 00:00:00 2001 From: Lukasz Fundakowski Date: Mon, 17 Nov 2025 10:13:55 +0100 Subject: [PATCH] twister: Keep pytest output formatting in log Fixed formatting of pytest output in log by not removing leading whitespaces. Signed-off-by: Lukasz Fundakowski --- scripts/pylib/twister/twisterlib/harness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/harness.py b/scripts/pylib/twister/twisterlib/harness.py index 514f4cb77485c..0f9d967183c17 100644 --- a/scripts/pylib/twister/twisterlib/harness.py +++ b/scripts/pylib/twister/twisterlib/harness.py @@ -576,7 +576,7 @@ def _update_command_with_env_dependencies(cmd): def _output_reader(self, proc): self._output = [] while proc.stdout.readable() and proc.poll() is None: - line = proc.stdout.readline().decode().strip() + line = proc.stdout.readline().decode().rstrip() if not line: continue self._output.append(line)