mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 23:03: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:
parent
b57b306d4b
commit
f51a804357
@ -33,9 +33,12 @@ sub root_console {
|
|||||||
sub post_fail_hook {
|
sub post_fail_hook {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
if (check_screen 'emergency_rescue', 3) {
|
if (check_screen ['emergency_rescue', 'emergency_rescue_nopassword'], 3) {
|
||||||
my $password = get_var("ROOT_PASSWORD", "weakpassword");
|
if (match_has_tag 'emergency_rescue') {
|
||||||
type_string "$password\n";
|
my $password = get_var("ROOT_PASSWORD", "weakpassword");
|
||||||
|
type_string "$password";
|
||||||
|
}
|
||||||
|
send_key 'ret';
|
||||||
# bring up network so we can upload logs
|
# bring up network so we can upload logs
|
||||||
assert_script_run "dhclient";
|
assert_script_run "dhclient";
|
||||||
}
|
}
|
||||||
|
16
needles/console/emergency_rescue_nopassword-20201028.json
Normal file
16
needles/console/emergency_rescue_nopassword-20201028.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"height": 16,
|
||||||
|
"width": 216,
|
||||||
|
"type": "match",
|
||||||
|
"ypos": 736,
|
||||||
|
"xpos": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"LANGUAGE-english",
|
||||||
|
"emergency_rescue_nopassword"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/console/emergency_rescue_nopassword-20201028.png
Normal file
BIN
needles/console/emergency_rescue_nopassword-20201028.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
Loading…
Reference in New Issue
Block a user