Compare commits

...

10 Commits

Author SHA1 Message Date
Adam Williamson 74178d5fd5 Make UEFI testing the default, add Secure Boot testing
This essentially inverts the x86_64 machines so that '64bit' is
UEFI and instead of a variant 'uefi' machine we have a variant
'bios' machine that is BIOS. The point is to make UEFI testing
the default. We also enable Secure Boot in the UEFI testing,
and add a test of UEFI fallback booting on various products.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-25 17:25:27 -07:00
Adam Williamson 1739f38061 Add a workaround for RHBZ #2268505
My anaconda patch for ensuring we get an EFI boot manager entry
on installs using bootupd (currently only 'canned', i.e. Atomic,
installs - IoT and Atomic Desktops - are affected) was rejected
and dropped in the latest Rawhide build. It'll probably also be
lost in the next F40 build. So install tests of affected images
have started failing. This is a kinda awkward workaround: on
UEFI canned installs, we check whether it looks like there is no
"Fedora" efibootmgr entry, and if so, we delete the entry for the
optical drive, so hopefully we'll boot via fallback path from
the hard disk on reboot.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-25 17:25:10 -07:00
Adam Williamson 66aa587755 Updated/variant Firefox main screen needle
Old one was a 96% match. Not really sure what changed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-25 08:56:43 -07:00
Adam Williamson cc832a4ad8 Fix new logic in Clocks test
Whoops, we can't just use a straight match_has_tag there as we
did another assert in the middle...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-25 08:22:53 -07:00
Adam Williamson 5332b99076 Update a bunch of GNOME needles for 46.0 changes
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-24 18:12:25 -07:00
Adam Williamson 8ebf3bdddb Tweak Clocks alarm test for change in upstream code
Upstream now sets an alarm with no explicit recurrence inactive
after it is stopped (previously it assumed recurrence every day).
We need the test to handle both behaviours for a while (until
we are no longer testing < 46.0 anywhere).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-24 09:47:21 -07:00
Adam Williamson 37150e430f Add yet another variant 'updates available' needle
GNOME seems to be growing a bunch of different variants of this
alert. Annoying.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-24 09:23:38 -07:00
Adam Williamson f6273425ee Add FEDORA-2024-01fd5aa621 to workarounds
gvfs from the GNOME 46 megaupdate needs it. It's been pushed
stable but not included in a compose, yet.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-23 17:12:40 -07:00
Adam Williamson 92c822a719 Clear no-longer-needed update from workarounds
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-23 17:12:11 -07:00
Adam Williamson 222223309e Update another GNOME needle for 46
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-03-21 12:15:12 -07:00
61 changed files with 743 additions and 230 deletions

View File

@ -476,7 +476,7 @@ sub get_workarounds {
my %workarounds = (
"38" => [],
"39" => [],
"40" => ["FEDORA-2024-b8e524ffdd"],
"40" => ["FEDORA-2024-01fd5aa621"],
"41" => [],
);
my $advortasks = $workarounds{$version};

View File

@ -310,10 +310,6 @@ sub load_postinstall_tests() {
}
autotest::loadtest $storagepost if ($storagepost);
if (get_var("UEFI") && !get_var("NO_UEFI_POST") && !get_var("START_AFTER_TEST")) {
autotest::loadtest "tests/uefi_postinstall.pm";
}
# console avc / crash check
# it makes no sense to run this after logging in on most post-
# install tests (hence ! BOOTFROM) and we do not want it
@ -362,6 +358,10 @@ sub load_postinstall_tests() {
}
}
if (get_var("UEFI") && !get_var("NO_UEFI_POST") && !get_var("START_AFTER_TEST")) {
autotest::loadtest "tests/uefi_postinstall.pm";
}
# we should shut down before uploading disk images
if (get_var("STORE_HDD_1") || get_var("STORE_HDD_2") || get_var("PUBLISH_HDD_1")) {
autotest::loadtest "tests/_console_shutdown.pm";

View File

@ -0,0 +1,20 @@
{
"area": [
{
"width": 74,
"type": "match",
"height": 16,
"xpos": 465,
"ypos": 577
}
],
"properties": [],
"tags": [
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server_boot",
"ENV-FLAVOR-workstation_live",
"ENV-UEFI-1",
"bootloader_uefi",
"bootloader"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -0,0 +1,23 @@
{
"area": [
{
"width": 17,
"height": 18,
"ypos": 89,
"xpos": 88,
"type": "match"
},
{
"width": 17,
"xpos": 991,
"ypos": 88,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"firefox",
"browser"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 102,
"xpos": 231,
"ypos": 106,
"type": "match",
"height": 28
}
],
"properties": [],
"tags": [
"clocks_alarm_snooze_confirmed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 87,
"xpos": 468,
"ypos": 367,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_timer_page"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 24,
"ypos": 718,
"xpos": 974,
"width": 24
}
],
"properties": [],
"tags": [
"maps_button_zoom_in"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 22,
"type": "match",
"ypos": 718,
"xpos": 923,
"width": 19
}
],
"properties": [],
"tags": [
"maps_button_zoom_out"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 389,
"height": 102,
"type": "match",
"xpos": 446,
"width": 141
}
],
"properties": [],
"tags": [
"maps_exported_map"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 137,
"xpos": 443,
"type": "match",
"height": 117,
"ypos": 374
}
],
"properties": [],
"tags": [
"maps_found_brno"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 146,
"xpos": 431,
"ypos": 389,
"height": 107,
"type": "match"
}
],
"properties": [],
"tags": [
"maps_found_denali"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 398,
"height": 129,
"type": "match",
"xpos": 453,
"width": 150
}
],
"properties": [],
"tags": [
"maps_found_poysdorf"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 128,
"type": "match",
"ypos": 327,
"xpos": 374,
"width": 212
}
],
"properties": [],
"tags": [
"maps_found_pune"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 140,
"type": "match",
"ypos": 371,
"xpos": 412,
"width": 192
}
],
"properties": [],
"tags": [
"maps_found_vilnius"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 119,
"ypos": 379,
"width": 198,
"xpos": 379
}
],
"properties": [],
"tags": [
"maps_found_wellington"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 377,
"ypos": 191,
"width": 98,
"height": 60,
"type": "match"
},
{
"xpos": 456,
"ypos": 104,
"width": 52,
"height": 36,
"type": "match"
}
],
"properties": [],
"tags": [
"maps_info_vilnius"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"type": "match",
"height": 91,
"ypos": 516,
"xpos": 468,
"width": 173
},
{
"width": 117,
"xpos": 374,
"ypos": 644,
"type": "match",
"height": 60
}
],
"properties": [],
"tags": [
"maps_info_wellington"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 362,
"type": "match",
"height": 162,
"xpos": 415,
"width": 197
}
],
"properties": [],
"tags": [
"maps_map_zoomed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 318,
"ypos": 354,
"width": 102,
"xpos": 347
}
],
"properties": [],
"tags": [
"maps_route_bike_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 371,
"height": 309,
"type": "match",
"xpos": 355,
"width": 80
}
],
"properties": [],
"tags": [
"maps_route_car_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 417,
"height": 147,
"type": "match",
"width": 73,
"xpos": 319
}
],
"properties": [],
"tags": [
"maps_route_walk_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 11,
"width": 151,
"ypos": 720,
"type": "match",
"height": 38
}
],
"properties": [],
"tags": [
"maps_scale_on"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 0,
"ypos": 109,
"height": 53,
"type": "match",
"width": 148
}
],
"properties": [],
"tags": [
"sysmon_fsystems_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 333,
"width": 20,
"ypos": 43,
"type": "match",
"height": 22
}
],
"properties": [],
"tags": [
"sysmon_processes_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 78,
"width": 41,
"ypos": 206,
"height": 22,
"type": "match"
},
{
"type": "match",
"height": 21,
"ypos": 353,
"xpos": 113,
"width": 63
}
],
"properties": [],
"tags": [
"sysmon_resources_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"width": 89,
"xpos": 171,
"ypos": 58,
"height": 202,
"type": "match"
}
],
"properties": [],
"tags": [
"desktop_update_notification_only",
"desktop_update_notification",
"DESKTOP-gnome"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 53,
"xpos": 691,
"ypos": 114,
"type": "match",
"height": 37
}
],
"properties": [],
"tags": [
"gnome_button_toggle"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 92,
"xpos": 589,
"ypos": 467,
"type": "match",
"height": 17
}
],
"properties": [],
"tags": [
"grant_access"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 KiB

View File

@ -5,7 +5,7 @@
"distri": "fedora",
"flavor": "updates-container",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -16,7 +16,7 @@
"distri": "fedora",
"flavor": "updates-container",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -27,7 +27,7 @@
"distri": "fedora",
"flavor": "updates-container",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -48,7 +48,7 @@
"distri": "fedora",
"flavor": "updates-kde",
"settings": {
"+HDD_1": "disk_f%VERSION%_kde_4_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_kde_5_%ARCH%.qcow2",
"DESKTOP": "kde",
"NUMDISKS": "2",
"RETRY": "1"
@ -60,7 +60,7 @@
"distri": "fedora",
"flavor": "updates-server",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -71,7 +71,7 @@
"distri": "fedora",
"flavor": "updates-server",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -82,7 +82,7 @@
"distri": "fedora",
"flavor": "updates-server-upgrade",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -113,7 +113,7 @@
"distri": "fedora",
"flavor": "updates-server",
"settings": {
"+HDD_1": "disk_f%VERSION%_server_3_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_server_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -182,7 +182,7 @@
"flavor": "updates-workstation",
"settings": {
"DESKTOP": "gnome",
"+HDD_1": "disk_f%VERSION%_desktop_4_%ARCH%.qcow2",
"+HDD_1": "disk_f%VERSION%_desktop_5_%ARCH%.qcow2",
"NUMDISKS": "2",
"RETRY": "1"
},
@ -206,8 +206,8 @@
"machine": "64bit",
"product": "fedora-updates-everything-boot-iso-x86_64-*"
},
"fedora-updates-everything-boot-iso-x86_64-*-uefi": {
"machine": "uefi",
"fedora-updates-everything-boot-iso-x86_64-*-bios": {
"machine": "bios",
"product": "fedora-updates-everything-boot-iso-x86_64-*"
},
"fedora-updates-kde-x86_64-*-64bit": {
@ -238,24 +238,24 @@
"machine": "64bit",
"product": "fedora-updates-kde-live-iso-x86_64-*"
},
"fedora-updates-kde-live-iso-x86_64-*-uefi": {
"machine": "uefi",
"fedora-updates-kde-live-iso-x86_64-*-bios": {
"machine": "bios",
"product": "fedora-updates-kde-live-iso-x86_64-*"
},
"fedora-updates-silverblue-dvd_ostree-iso-x86_64-*-64bit": {
"machine": "64bit",
"product": "fedora-updates-silverblue-dvd_ostree-iso-x86_64-*"
},
"fedora-updates-silverblue-dvd_ostree-iso-x86_64-*-uefi": {
"machine": "uefi",
"fedora-updates-silverblue-dvd_ostree-iso-x86_64-*-bios": {
"machine": "bios",
"product": "fedora-updates-silverblue-dvd_ostree-iso-x86_64-*"
},
"fedora-updates-workstation-live-iso-x86_64-*-64bit": {
"machine": "64bit",
"product": "fedora-updates-workstation-live-iso-x86_64-*"
},
"fedora-updates-workstation-live-iso-x86_64-*-uefi": {
"machine": "uefi",
"fedora-updates-workstation-live-iso-x86_64-*-bios": {
"machine": "bios",
"product": "fedora-updates-workstation-live-iso-x86_64-*"
},
"fedora-updates-workstation-upgrade-x86_64-*-64bit": {
@ -367,10 +367,10 @@
},
"install_default_update_live": {
"profiles": {
"fedora-updates-kde-live-iso-x86_64-*-bios": 5,
"fedora-updates-kde-live-iso-x86_64-*-64bit": 5,
"fedora-updates-kde-live-iso-x86_64-*-uefi": 5,
"fedora-updates-workstation-live-iso-x86_64-*-64bit": 5,
"fedora-updates-workstation-live-iso-x86_64-*-uefi": 5
"fedora-updates-workstation-live-iso-x86_64-*-bios": 5,
"fedora-updates-workstation-live-iso-x86_64-*-64bit": 5
},
"settings": {
"+START_AFTER_TEST": "live_build@%ARCH_BASE_MACHINE%",
@ -381,8 +381,8 @@
},
"install_default_update_netinst": {
"profiles": {
"fedora-updates-everything-boot-iso-x86_64-*-64bit": 5,
"fedora-updates-everything-boot-iso-x86_64-*-uefi": 5
"fedora-updates-everything-boot-iso-x86_64-*-bios": 5,
"fedora-updates-everything-boot-iso-x86_64-*-64bit": 5
},
"settings": {
"+START_AFTER_TEST": "installer_build@%ARCH_BASE_MACHINE%",
@ -410,7 +410,7 @@
},
"install_default_ostree": {
"profiles": {
"fedora-updates-silverblue-dvd_ostree-iso-x86_64-*-uefi": 5
"fedora-updates-silverblue-dvd_ostree-iso-x86_64-*-bios": 5
},
"settings": {
"INSTALL": "1",
@ -425,7 +425,7 @@
},
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_f%VERSION%_minimal_3_%ARCH%.qcow2",
"HDD_1": "disk_f%VERSION%_minimal_4_%ARCH%.qcow2",
"NUMDISKS": "2",
"POSTINSTALL": "_installer_build",
"ROOT_PASSWORD": "weakpassword",
@ -442,7 +442,7 @@
"+LIVE": "",
"BOOTFROM": "c",
"GRUB_POSTINSTALL": "selinux=0",
"HDD_1": "disk_f%VERSION%_minimal_3_%ARCH%.qcow2",
"HDD_1": "disk_f%VERSION%_minimal_4_%ARCH%.qcow2",
"HDDSIZEGB_3": "25",
"MAX_JOB_TIME": "10800",
"+NUMDISKS": "3",
@ -459,7 +459,7 @@
"+DESKTOP": "",
"+CANNED": "",
"BOOTFROM": "c",
"HDD_1": "disk_f%VERSION%_minimal_3_%ARCH%.qcow2",
"HDD_1": "disk_f%VERSION%_minimal_4_%ARCH%.qcow2",
"HDDSIZEGB_3": "30",
"MAX_JOB_TIME": "12600",
"+NUMDISKS": "3",

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,10 @@ sub run {
assert_screen "user_console", 300;
type_string "sudo su\n";
assert_script_run "coreos-installer install /dev/vda --ignition-url https://www.happyassassin.net/temp/openqa.ign", 600;
# the CoreOS installer does not write an efibootmgr entry, so to
# ensure we boot from hard disk on next boot, wipe the entry for
# the optical drive
assert_script_run('efibootmgr -b $(efibootmgr | grep CD-ROM | head -1 | cut -f1 | sed -e "s,[^0-9],,g") -B') if (get_var("UEFI"));
type_string "reboot\n";
}

View File

@ -130,6 +130,12 @@ sub run {
# just like non-lives). And if we're already doing something
# else at a console, we may as well reboot from there too
push(@actions, 'reboot') if (!get_var("MEMCHECK") && ((get_var("LIVE") && !$webui) || @actions));
# check whether install is affected by
# https://bugzilla.redhat.com/show_bug.cgi?id=2268505 ,
# soft fail and work around it if so
if (get_var("CANNED") && get_var("UEFI")) {
push(@actions, 'checkefibootmgr') if (get_var("UEFI"));
}
# our approach for taking all these actions doesn't work on VNC
# installs, fortunately we don't need any of them in that case
# yet, so for now let's just flush the list here if we're VNC
@ -191,6 +197,16 @@ sub run {
if (grep { $_ eq 'noplymouth' } @actions) {
assert_script_run "chroot $mount dnf -y remove plymouth";
}
if (grep { $_ eq 'checkefibootmgr' } @actions) {
if (script_run 'efibootmgr | grep fedora') {
record_soft_failure "No EFI boot manager entry created - likely RHBZ #2268505";
# delete the optical drive entry, if there is one, so hopefully
# we'll boot via fallback path
unless (script_run 'efibootmgr | grep CD-ROM') {
assert_script_run('efibootmgr -b $(efibootmgr | grep CD-ROM | head -1 | cut -f1 | sed -e "s,[^0-9],,g") -B');
}
}
}
type_string "reboot\n" if (grep { $_ eq 'reboot' } @actions);
}

View File

@ -0,0 +1,30 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
if (not(check_screen "root_console", 0)) {
$self->root_console(tty => 4);
}
# now try deleting the "Fedora" boot entry and rebooting, to check the fallback path
assert_script_run('efibootmgr -b $(efibootmgr | grep Fedora | head -1 | cut -f1 | sed -e "s,[^0-9],,g") -B');
# check that worked
validate_script_output('efibootmgr', sub { $_ !~ m/.*Fedora.*/s });
type_string("reboot\n");
boot_to_login_screen;
$self->root_console(tty => 3);
# Fedora entry should have been recreated
validate_script_output('efibootmgr', sub { m/Fedora/ });
# SB should still be enabled
validate_script_output('mokutil --sb-state', sub { m/SecureBoot enabled/ });
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et:

View File

@ -30,14 +30,25 @@ sub run {
# After another minute or so, the alarm should ring again.
# This time we will use the stop button to stop it.
assert_and_click("clocks_button_alarm_stop", timeout => 120);
# The alarm should switch off but should stay listed active.
assert_screen("clocks_alarm_active");
# Now toggle the switch to inactivate it.
# Up to 46.0, the alarm would stay active after being stopped; from
# 46.0 onwards it goes inactive. FIXME this can be simplified to
# assume it starts at 'inactive' once we are no longer testing
# < 46.0 anywhere
assert_screen(["clocks_alarm_active", "clocks_alarm_inactive"]);
my $wasactive = match_has_tag("clocks_alarm_active");
# Now toggle the switch to change its state
assert_and_click("gnome_button_toggle");
assert_screen("clocks_alarm_inactive");
# whichever state it was in, check it's now in the other
if ($wasactive) {
assert_screen("clocks_alarm_inactive");
}
else {
assert_screen("clocks_alarm_active");
}
# Delete alarm using the delete button.
assert_and_click("gnome_button_cross_remove");
if (check_screen("clocks_alarm_inactive")) {
sleep 2;
if (check_screen(["clocks_alarm_active", "clocks_alarm_inactive"])) {
die("The alarm should have been deleted but it is still visible in the GUI");
}

View File

@ -13,6 +13,10 @@ sub run {
console_loadkeys_us;
# this test shows if the system is booted with efi
assert_script_run '[ -d /sys/firmware/efi/ ]';
# if Secure Boot should be enabled, check it is; if it isn't,
# that *probably* indicates a test system issue not a distro bug,
# but we want to know either way
validate_script_output('mokutil --sb-state', sub { m/SecureBoot enabled/ }) if (get_var("UEFI_SECURE"));
}
sub test_flags {