mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-12-01 05:16:00 +00:00
Slow type commands at graphical console in keyring tests
It's not safe to fast-type things at graphical consoles. This is failing quite a lot on aarch64 currently due to heavy load on the worker hosts. Slow typing should help. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
f818c0c38e
commit
13d8965212
@ -18,9 +18,9 @@ my $desktop = get_var("DESKTOP", "gnome");
|
|||||||
# certain variables are set in the system. This subroutine sets up
|
# certain variables are set in the system. This subroutine sets up
|
||||||
# those variables.
|
# those variables.
|
||||||
sub export_kde_vars {
|
sub export_kde_vars {
|
||||||
enter_cmd('export SSH_ASKPASS=/usr/bin/ksshaskpass');
|
enter_cmd('export SSH_ASKPASS=/usr/bin/ksshaskpass', 1);
|
||||||
sleep 2;
|
sleep 2;
|
||||||
enter_cmd('export SSH_ASKPASS_REQUIRE=prefer');
|
enter_cmd('export SSH_ASKPASS_REQUIRE=prefer', 1);
|
||||||
sleep 2;
|
sleep 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ sub connect_localhost {
|
|||||||
export_kde_vars();
|
export_kde_vars();
|
||||||
# Connect the sftp.
|
# Connect the sftp.
|
||||||
my $command = "sftp $user" . '@localhost';
|
my $command = "sftp $user" . '@localhost';
|
||||||
enter_cmd($command);
|
enter_cmd($command, 1);
|
||||||
# If performed for the first time, also deal with the
|
# If performed for the first time, also deal with the
|
||||||
# password storing which is a little painful on KDE.
|
# password storing which is a little painful on KDE.
|
||||||
if ($type ne "reconnect") {
|
if ($type ne "reconnect") {
|
||||||
|
|||||||
@ -19,9 +19,9 @@ sub export_kde_vars {
|
|||||||
# On KDE, it is possible to update and reuse the keyring
|
# On KDE, it is possible to update and reuse the keyring
|
||||||
# on Konsole if correct environmental variables are set.
|
# on Konsole if correct environmental variables are set.
|
||||||
# Set them now.
|
# Set them now.
|
||||||
enter_cmd('export SSH_ASKPASS=/usr/bin/ksshaskpass');
|
enter_cmd('export SSH_ASKPASS=/usr/bin/ksshaskpass', 1);
|
||||||
sleep 2;
|
sleep 2;
|
||||||
enter_cmd('export SSH_ASKPASS_REQUIRE=prefer');
|
enter_cmd('export SSH_ASKPASS_REQUIRE=prefer', 1);
|
||||||
sleep 2;
|
sleep 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ sub connect_localhost {
|
|||||||
# A dialogue should appear to collect credentials to open
|
# A dialogue should appear to collect credentials to open
|
||||||
# the SSH key.
|
# the SSH key.
|
||||||
my $command = "sftp $user" . '@localhost';
|
my $command = "sftp $user" . '@localhost';
|
||||||
enter_cmd($command);
|
enter_cmd($command, 1);
|
||||||
|
|
||||||
# When connecting for the first time, we will remember
|
# When connecting for the first time, we will remember
|
||||||
# the key password and store it in the keyring.
|
# the key password and store it in the keyring.
|
||||||
@ -55,9 +55,9 @@ sub connect_localhost {
|
|||||||
# so far.
|
# so far.
|
||||||
assert_screen("keyring_sftp_logged");
|
assert_screen("keyring_sftp_logged");
|
||||||
# Finish the connection.
|
# Finish the connection.
|
||||||
enter_cmd("bye");
|
enter_cmd("bye", 1);
|
||||||
# Exit the terminal app.
|
# Exit the terminal app.
|
||||||
enter_cmd("exit");
|
enter_cmd("exit", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user