Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuously print console to stdout #81

Open
yanivy-nr opened this issue Sep 28, 2022 · 0 comments
Open

Continuously print console to stdout #81

yanivy-nr opened this issue Sep 28, 2022 · 0 comments

Comments

@yanivy-nr
Copy link

yanivy-nr commented Sep 28, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant