Device adapter strips all whitespace from output lines causing test failures when matching default shell prompt "uart:~$ " with trailing space. Update _handle_device_output to only strip line endings (\r\n) while preserving whitespace required for prompt detection. A testcase sample.pytest.shell.no_vt100 was added to verify prompt matching works with CONFIG_SHELL_VT100_COLORS disabled. Signed-off-by: Thomas Günther <thomas.guenther@limatica.com>
29 lines
724 B
YAML
29 lines
724 B
YAML
tests:
|
|
sample.pytest.shell:
|
|
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
|
|
integration_platforms:
|
|
- native_sim
|
|
- qemu_cortex_m3
|
|
tags:
|
|
- 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
|