Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Fix desync on retry when a prior attempt failed #47

Merged
merged 3 commits into from
Sep 14, 2022
Merged

Conversation

chenxiaolong
Copy link
Owner

@chenxiaolong chenxiaolong commented Sep 14, 2022

Previously, when an error occurred, unconsumed output data was left in the rexpect buffer, causing unexpected data on the next retry. This PR changes the behavior to always wait for the ipmitool shell prompt (discarding unused data) before returning.

Issue: #43

Otherwise, unused output data is left in the rexpect buffer, causing the
output state to be desynced for the next retry.

Issue: #43

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
…vailable

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
@chenxiaolong chenxiaolong self-assigned this Sep 14, 2022
@chenxiaolong chenxiaolong merged commit 820aaf5 into master Sep 14, 2022
@chenxiaolong chenxiaolong deleted the desync branch September 14, 2022 16:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant