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;
if (get_var("SWITCHED_LAYOUT")) {
$self->switch_layout("us"); $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");
if (get_var("SWITCHED_LAYOUT")) {
# work around RHBZ #1333984 # work around RHBZ #1333984
$self->switch_layout("native"); $self->switch_layout("native");
}
assert_and_click "anaconda_install_destination_save_passphrase"; assert_and_click "anaconda_install_destination_save_passphrase";