1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 14:53:09 +00:00

disk_guided_encrypted: only switch layout when appropriate

this stuff is only appropriate when a switched keyboard layout
is in play. Left unconditional like this, it breaks the normal
encrypted install test case.
This commit is contained in:
Adam Williamson 2016-05-20 11:56:48 -07:00
parent efb0a916f6
commit ede7713a6c

View File

@ -14,12 +14,16 @@ sub run {
# type password for disk encryption # type password for disk encryption
wait_idle 5; wait_idle 5;
$self->switch_layout("us"); if (get_var("SWITCHED_LAYOUT")) {
$self->switch_layout("us");
}
type_string get_var("ENCRYPT_PASSWORD"); type_string get_var("ENCRYPT_PASSWORD");
send_key "tab"; send_key "tab";
type_string get_var("ENCRYPT_PASSWORD"); type_string get_var("ENCRYPT_PASSWORD");
# work around RHBZ #1333984 if (get_var("SWITCHED_LAYOUT")) {
$self->switch_layout("native"); # work around RHBZ #1333984
$self->switch_layout("native");
}
assert_and_click "anaconda_install_destination_save_passphrase"; assert_and_click "anaconda_install_destination_save_passphrase";