From 89d7b27357ea5938bb942cd4e318876d13646a0c Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 30 Oct 2023 15:13:08 -0600 Subject: [PATCH] systests: stty test: retry once on flake I've seen the stty flake (#10710) twice in one day. Time to add a retry. Signed-off-by: Ed Santiago --- test/system/450-interactive.bats | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/system/450-interactive.bats b/test/system/450-interactive.bats index bc619829ed..1eaa17ac2b 100644 --- a/test/system/450-interactive.bats +++ b/test/system/450-interactive.bats @@ -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