diff --git a/tests/disk_guided_encrypted.pm b/tests/disk_guided_encrypted.pm index d7c6ecd9..cdf0eade 100644 --- a/tests/disk_guided_encrypted.pm +++ b/tests/disk_guided_encrypted.pm @@ -14,12 +14,16 @@ sub run { # type password for disk encryption wait_idle 5; - $self->switch_layout("us"); + if (get_var("SWITCHED_LAYOUT")) { + $self->switch_layout("us"); + } type_string get_var("ENCRYPT_PASSWORD"); send_key "tab"; type_string get_var("ENCRYPT_PASSWORD"); - # work around RHBZ #1333984 - $self->switch_layout("native"); + if (get_var("SWITCHED_LAYOUT")) { + # work around RHBZ #1333984 + $self->switch_layout("native"); + } assert_and_click "anaconda_install_destination_save_passphrase";