Rahix / tbot

Automation/Testing tool for Embedded Linux Development
https://tbot.tools
GNU General Public License v3.0
84 stars 21 forks source link

Continuously print console to stdout #81

Open yanivy-nr opened 1 year ago

yanivy-nr commented 1 year ago

Hello,

We have important kernel messages printed to the device console during tests and would like to have them printed continuously while the tests are running. These messages are needed for debugging when the tests fail.

Currently, to have the console's recent messages printed out, we need to send a command using exec0() method (our device is configured to use connector.ConsoleConnector).

Is there a way in TBot to have the console continuously print the console to stdout? I thought about having a thread that every second polls the channel for new data and printing it out using channel.read_until_timeout(1) method.

Thanks, Yaniv

PS: Thank you for adding the utils.copy_to_dir() functionality :) (was out on vacation and returned today).