From 50c3a1ba7f9cc753440bf8d3395bfac02448c8ba Mon Sep 17 00:00:00 2001 From: Vincent Mihalkovic Date: Thu, 8 Feb 2024 10:12:08 +0100 Subject: [PATCH] tests/login/*.exp turn on the conservative mode In modified files [0] we can find a note that the Expect script is time-sensitive when combined with number of programs (e.g. ksh), and to discard or ignore keystrokes that come "too fast" after prompts after prompts. The solution is to use the conservative mode. [0]: https://src.fedoraproject.org/tests/shell/blob/main/f/tests/login/ssh.exp --- tests/login/script.exp | 2 +- tests/login/ssh.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/login/script.exp b/tests/login/script.exp index 127e8e0..de30c1e 100644 --- a/tests/login/script.exp +++ b/tests/login/script.exp @@ -17,7 +17,7 @@ # this in the first place. The -C flag allows you to define a # character to toggle this mode off and on. -set force_conservative 0 ;# set to 1 to force conservative mode even if +set force_conservative 1 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1} diff --git a/tests/login/ssh.exp b/tests/login/ssh.exp index 8807f79..76dcd6a 100644 --- a/tests/login/ssh.exp +++ b/tests/login/ssh.exp @@ -17,7 +17,7 @@ # this in the first place. The -C flag allows you to define a # character to toggle this mode off and on. -set force_conservative 0 ;# set to 1 to force conservative mode even if +set force_conservative 1 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1}