1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Handle emergency console entry with no password

This happens on ARM disk images.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-10-28 15:21:03 -07:00
parent b57b306d4b
commit f51a804357
3 changed files with 22 additions and 3 deletions

View File

@ -33,9 +33,12 @@ sub root_console {
sub post_fail_hook {
my $self = shift;
if (check_screen 'emergency_rescue', 3) {
my $password = get_var("ROOT_PASSWORD", "weakpassword");
type_string "$password\n";
if (check_screen ['emergency_rescue', 'emergency_rescue_nopassword'], 3) {
if (match_has_tag 'emergency_rescue') {
my $password = get_var("ROOT_PASSWORD", "weakpassword");
type_string "$password";
}
send_key 'ret';
# bring up network so we can upload logs
assert_script_run "dhclient";
}

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 16,
"width": 216,
"type": "match",
"ypos": 736,
"xpos": 0
}
],
"properties": [],
"tags": [
"LANGUAGE-english",
"emergency_rescue_nopassword"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB