From 44cf1cd89c6852bf4d8126a25db9e571c1bee3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sedl=C3=A1k?= Date: Tue, 13 Dec 2016 09:18:34 +0100 Subject: [PATCH] reintroduce rescue on UEFI Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D1060 --- templates | 12 ++++++++++++ tests/rescue_mode_encrypted.pm | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/templates b/templates index cabe51fb..7e4efa5f 100755 --- a/templates +++ b/templates @@ -446,6 +446,17 @@ }, test_suite => { name => "install_rescue_encrypted" }, }, + { + machine => { name => "uefi" }, + prio => 32, + product => { + arch => "x86_64", + distri => "fedora", + flavor => "universal", + version => "*", + }, + test_suite => { name => "install_rescue_encrypted" }, + }, { machine => { name => "64bit" }, prio => 10, @@ -1586,6 +1597,7 @@ { name => "install_rescue_encrypted", settings => [ + { key => "BOOTFROM", value => "d" }, { key => "ENTRYPOINT", value => "rescue_mode_encrypted" }, { key => "HDD_1", value => "disk_%MACHINE%_encrypted.qcow2" }, { key => "START_AFTER_TEST", value => "install_simple_encrypted" }, diff --git a/tests/rescue_mode_encrypted.pm b/tests/rescue_mode_encrypted.pm index 8a1f80a1..5db1e0d2 100644 --- a/tests/rescue_mode_encrypted.pm +++ b/tests/rescue_mode_encrypted.pm @@ -9,7 +9,13 @@ sub run { send_key "down"; send_key "ret"; # select "rescue system" - type_string "r\n"; + if (get_var('UEFI')) { + send_key "down"; + send_key "ret"; + } + else { + type_string "r\n"; + } assert_screen "rescue_select", 120; # it takes time to start anaconda # continue