diff --git a/samples/subsys/testsuite/pytest/shell/testcase.yaml b/samples/subsys/testsuite/pytest/shell/testcase.yaml index 86b9314f4444..f256cd9df8f5 100644 --- a/samples/subsys/testsuite/pytest/shell/testcase.yaml +++ b/samples/subsys/testsuite/pytest/shell/testcase.yaml @@ -12,3 +12,17 @@ tests: - test_framework - pytest - shell + sample.pytest.shell.vt100_colors_off: + filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") + min_ram: 40 + harness: pytest + extra_configs: + - arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y + - CONFIG_SHELL_VT100_COLORS=n + integration_platforms: + - native_sim + - qemu_cortex_m3 + tags: + - test_framework + - pytest + - shell diff --git a/scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py b/scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py index fd97972c74af..87ecac0f75a9 100644 --- a/scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py +++ b/scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py @@ -240,7 +240,7 @@ def _handle_device_output(self) -> None: with open(self.handler_log_path, 'a+') as log_file: while self.is_device_running(): if self.is_device_connected(): - output = self._read_device_output().decode(errors='replace').strip() + output = self._read_device_output().decode(errors='replace').rstrip("\r\n") if output: self._device_read_queue.put(output) log_file.write(f'{output}\n')