zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.59k stars 6.48k forks source link

samples: subsys: testsuite: pytest: shell: sample.pytest.shell report timeout #78408

Open katgiadla opened 2 weeks ago

katgiadla commented 2 weeks ago

Describe the bug Test samples/subsys/testsuite/pytest/shell/sample.pytest.shell fails.

Observed for nrf9160dk/nrf9160/ns

To Reproduce

  1. have nrf9160dk/nrf9160/ns connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T samples/subsys/testsuite/pytest/shell -p nrf9160dk/nrf9160/ns --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

DEBUG:twister_harness.device.factory: Get device type "hardware"
DEBUG:twister_harness.device.hardware_adapter: Opening serial connection for /dev/serial/by-id/usb-SEGGER_J-Link_0-if00
DEBUG:twister_harness.device.hardware_adapter: Flashing device
DEBUG:twister_harness.device.hardware_adapter: Flashing command: /usr/local/bin/west flash --skip-rebuild --build-dir /zephyr/zephyr/twister-out/nrf9160dk_nrf9160_ns/samples/subsys/testsuite/pytest/shell/sample.pytest.shell --runner nrfjprog -- --erase --dev-id 960029129
DEBUG:twister_harness.device.hardware_adapter: Flashing finished
DEBUG:twister_harness.helpers.utils: Found matching key: CONFIG_SHELL_PROMPT_UART="uart:~$ "
INFO:twister_harness.fixtures: Wait for prompt
DEBUG:twister_harness.helpers.shell: Got prompt
INFO:test_shell: send "help" command
DEBUG:twister_harness.device.device_adapter: #: [1;32muart:~$ [mhelp
DEBUG:twister_harness.device.device_adapter: #: Please press the <Tab> button to see all available commands.
DEBUG:twister_harness.device.device_adapter: #: You can also use the <Tab> button to prompt or auto-complete all commands or its subcommands.
DEBUG:twister_harness.device.device_adapter: #: You can try to call commands with <-h> or <--help> parameter for more information.
DEBUG:twister_harness.device.device_adapter: #: Shell supports following meta-keys:
DEBUG:twister_harness.device.device_adapter: #: Ctrl + (a key from: abcdefklnpuw)
DEBUG:twister_harness.device.device_adapter: #: Alt  + (a key from: bf)
DEBUG:twister_harness.device.device_adapter: #: Please refer to shell documentation for more details.
DEBUG:twister_harness.device.device_adapter: #: Available commands:
DEBUG:twister_harness.device.device_adapter: #: clear    : Clear screen.
DEBUG:twister_harness.device.device_adapter: #: device   : Device commands
DEBUG:twister_harness.device.device_adapter: #: devmem   : Read/write physical memory
DEBUG:twister_harness.device.device_adapter: #: [13CUsage:
DEBUG:twister_harness.device.device_adapter: #: [13CRead memory at address with optional width:
DEBUG:twister_harness.device.device_adapter: #: [13Cdevmem <address> [<width>]
DEBUG:twister_harness.device.device_adapter: #: [13CWrite memory at address with mandatory width and value:
DEBUG:twister_harness.device.device_adapter: #: [13Cdevmem <address> <width> <value>
DEBUG:twister_harness.device.device_adapter: #: help     : Prints the help message.
DEBUG:twister_harness.device.device_adapter: #: history  : Command history.
DEBUG:twister_harness.device.device_adapter: #: kernel   : Kernel commands
DEBUG:twister_harness.device.device_adapter: #: rem      : Ignore lines beginning with 'rem '
DEBUG:twister_harness.device.device_adapter: #: resize   : Console gets terminal screen size or assumes default in case the
DEBUG:twister_harness.device.device_adapter: #: [13Creadout fails. It must be executed after each terminal width change
DEBUG:twister_harness.device.device_adapter: #: [13Cto ensure correct text display.
DEBUG:twister_harness.device.device_adapter: #: retval   : Print return value of most recent command
DEBUG:twister_harness.device.device_adapter: #: shell    : Useful, not Unix-like shell commands.
DEBUG:twister_harness.device.device_adapter: #: [1;32muart:~$ [m
INFO:test_shell: response is valid
DEBUG:twister_harness.device.hardware_adapter: Closed serial connection for /dev/serial/by-id/usb-SEGGER_J-Link_000960029129-if00
DEBUG:twister_harness.device.hardware_adapter: Opening serial connection for /dev/serial/by-id/usb-SEGGER_J-Link_000960029129-if00
DEBUG:twister_harness.device.hardware_adapter: Flashing device 960029129
DEBUG:twister_harness.device.hardware_adapter: Flashing command: /usr/local/bin/west flash --skip-rebuild --build-dir /zephyr/zephyr/twister-out/nrf9160dk_nrf9160_ns/samples/subsys/testsuite/pytest/shell/sample.pytest.shell --runner nrfjprog -- --erase --dev-id 960029129
DEBUG:twister_harness.device.hardware_adapter: Flashing finished
DEBUG:twister_harness.helpers.utils: Found matching key: CONFIG_SHELL_PROMPT_UART="uart:~$ "
INFO:twister_harness.fixtures: Wait for prompt

Environment (please complete the following information):

nordic-piks commented 4 days ago

Triaged internally