1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

Work around IoT incomplete hub issue

This is a workaround for
https://github.com/osbuild/images/issues/309 , the IoT installer
showing incomplete spokes in the main hub. We work around it by
visiting them all.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-03-06 14:15:39 -08:00
parent a5f9c88584
commit 8da5b7c010
5 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 247,
"ypos": 304,
"width": 35,
"height": 31,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_main_hub",
"anaconda_main_hub_keyboard_layout_incomplete"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 247,
"ypos": 440,
"width": 35,
"height": 38,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_main_hub_time_date_incomplete"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -6,6 +6,22 @@ use utils;
use tapnet;
use anaconda;
sub _handle_incomplete_hub {
if (match_has_tag "anaconda_main_hub_keyboard_layout_incomplete") {
# workaround IoT/osbuild issue
# https://github.com/osbuild/images/issues/309
# by visiting the incomplete spokes
assert_and_click "anaconda_main_hub_keyboard_layout_incomplete";
wait_still_screen 3;
assert_and_click "anaconda_spoke_done";
assert_and_click "anaconda_main_hub_time_date_incomplete";
wait_still_screen 3;
assert_and_click "anaconda_spoke_done";
wait_still_screen 3;
send_key "shift-tab";
}
}
sub run {
my $self = shift;
if (get_var("IS_PXE")) {
@ -183,6 +199,7 @@ sub run {
}
else {
# this is when the hub appeared already, we're done
_handle_incomplete_hub;
return;
}
}
@ -201,6 +218,7 @@ sub run {
# show by now it never will, so we'll just wait for the
# hub to show up.
assert_screen "anaconda_main_hub", 900;
_handle_incomplete_hub;
}
}
}