Skip to content

Commit

Permalink
Merge pull request containers#20539 from edsantiago/stty_flake
Browse files Browse the repository at this point in the history
systests: stty test: retry once on flake
  • Loading branch information
openshift-ci[bot] authored Oct 31, 2023
2 parents 3776446 + 89d7b27 commit 735e243
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 735e243

Please sign in to comment.