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

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

ghost
Copy link

@ghost ghost 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

@Emantor Emantor self-assigned this May 21, 2024
Signed-off-by: Maciej Grela <m.grela@samsung.com>
@enkiusz
Copy link
Contributor

enkiusz commented Jun 19, 2024

fyi: my username is now @enkiusz instead of @mgrela. I moved the repo but the account name in PRs doesn't migrate along with it.

@Emantor Emantor requested a review from jluebbe June 19, 2024 10:45
@Emantor Emantor merged commit 1e8bad9 into labgrid-project:master Jun 26, 2024
9 checks passed
@enkiusz enkiusz deleted the settle-success-code branch August 9, 2024 10:23
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.

3 participants