From 602636ef2447d77da1b96606338129ae8240ae77 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 23 Aug 2023 09:42:54 -0700 Subject: [PATCH] Handle new live g-i-s flow in desktop_notifications Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index 3f956615..02d78b26 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -13,6 +13,7 @@ use packagetest; sub run { my $self = shift; my $desktop = get_var("DESKTOP"); + my $relnum = get_var("RELNUM"); # for the live image case, handle bootloader here if (get_var("BOOTFROM")) { do_bootloader(postinstall => 1, params => '3'); @@ -90,6 +91,10 @@ sub run { type_very_safely get_var("USER_PASSWORD", "weakpassword"); send_key 'ret'; } + elsif ($desktop eq 'gnome' && $relnum > 39) { + # since g-i-s 45~beta-3 we get a short g-i-s flow on live boot + gnome_initial_setup(live => 1); + } check_desktop(timeout => 90); # now, WE WAIT. this is just an unconditional wait - rather than # breaking if we see an update notification appear - so we catch