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

console: Make settle() indicate success/failure #1404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgrela
Copy link
Contributor

@mgrela mgrela commented May 13, 2024

Description

This code adds a simple return value to the settle() call which is useful in scenarios where a command or key sequence needs to be sent to quiet large amounts of console spam (for example linux kernel dmesg). In such cases this action may have to be retried multiple times and it's good to get an indication from settle() whether the console has really settled or a timeout has been reached.

This code is currently used in our deployment, before the change settle() does not have a return value at all therefore this change should not introduce regressions. The testsuite has been run with the change applied without any tests failing.

No changes to the documentation have been performed as the API of ConsoleExpectMixin is not documented there in detail.

Checklist

  • PR has been tested

Signed-off-by: Maciej Grela <m.grela@samsung.com>
@Emantor Emantor self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants