From 1c3106ebe39fd6e6a2053720cb0ac5a26a95e2f1 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 6 Apr 2020 17:30:03 -0700 Subject: [PATCH] OK, try setting GDM to debug mode instead? I tested this workaround on staging before pushing it to git and it worked, but then when I pushed it to prod it didn't work. On stg I also had this to set GDM to debugging mode, so maybe this is also needed for the workaround to work for some reason? Signed-off-by: Adam Williamson --- tests/desktop_notifications.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/desktop_notifications.pm b/tests/desktop_notifications.pm index 19b27805..c940ed41 100644 --- a/tests/desktop_notifications.pm +++ b/tests/desktop_notifications.pm @@ -24,6 +24,9 @@ sub run { $self->root_console(tty=>3); # ensure we actually have some package updates available prepare_test_packages; + # set GDM to debugging mode; seems to be needed as part of the + # #1821499 workaround + assert_script_run 'printf "[debug]\nEnable=true\n" > /etc/gdm/custom.conf'; if ($desktop eq 'gnome') { # On GNOME, move the clock forward if needed, because it won't # check for updates before 6am(!) @@ -72,7 +75,6 @@ sub run { # hit GDM instead if (check_screen "graphical_login", 30) { record_soft_failure "Hit GDM unexpectedly - #1821499"; - sleep 5; send_key 'ret'; } }