tests: avoid line wrap on fedora console
On fedora console, `stty columns 500` is reflected on `$COLUMNS` var.
However, if `stty rows` is zero (which is the default on
fedora console), updating `stty columns` doesn't update `$COLUMNS`.
Updating `stty rows` to non zero value solves the problem.
@@ -2858,7 +2858,7 @@ func configureConsole(expecter expect.Expecter, prompt string, shouldSudo bool)
sudoString = "sudo "
}
batch := append([]expect.Batcher{
- &expect.BSnd{S: "stty columns 500\n"},
+ &expect.BSnd{S: "stty cols 500 rows 500\n"},
&expect.BExp{R: prompt},
&expect.BSnd{S: "echo $?\n"},
&expect.BExp{R: RetValue("0", prompt)},
