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

systests: stty test: retry once on flake #20539

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/system/450-interactive.bats
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ function teardown() {
CR=$'\r'

# ...and make sure stty under podman reads that.
# This flakes often ("stty: standard input"), so, retry.
run_podman run -it --name mystty $IMAGE stty size <$PODMAN_TEST_PTY
if [[ "$output" =~ stty ]]; then
echo "# stty flaked, retrying: $output" >&3
run_podman rm -f mystty
sleep 1
run_podman run -it --name mystty $IMAGE stty size <$PODMAN_TEST_PTY
fi
is "$output" "$rows $cols$CR" "stty under podman run reads the correct dimensions"

run_podman rm -t 0 -f mystty
Expand Down
Loading