1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-23 22:43:07 +00:00

On Network tests, authenticate if need be.

This commit is contained in:
Lukas Ruzicka 2024-11-06 12:15:48 +01:00
parent 977d491e8b
commit 75406ee7f4

View File

@ -32,6 +32,13 @@ sub run {
# it does not work reliably. Ergo, we will use the old known # it does not work reliably. Ergo, we will use the old known
# ctrl-alt-f2 # ctrl-alt-f2
select_console "tty2-console"; select_console "tty2-console";
# Sometimes, we can see an authentication dialogue which
# prevents the test from continuing. Authenticate,
# if that is the case.
my $pass = get_var("USER_PASSWORD", "weakpassword");
if (check_screen("auth_required", timeout => 30)) {
type_very_safely("$pass\n");
}
sleep(3); sleep(3);
# Toggle network # Toggle network