From 9be26becc56a2ae200140d3eeb57cbf806072374 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 7 Mar 2022 16:38:30 -0800 Subject: [PATCH] desktop_login: disable automatic updating Otherwise, if there's an update to fXX-backgrounds pending, we'll get it on reboot in the middle of the test, and the real backgrounds will comes back and replace our black fake ones and break the test. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index f37ac4ce..6f0d5a4d 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -197,6 +197,9 @@ sub run { if ($desktop eq "gnome") { # suppress the Welcome Tour for new users in GNOME 40+ assert_script_run 'printf "[org.gnome.shell]\nwelcome-dialog-last-shown-version=\'4294967295\'\n" > /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override'; + # Disable automatic update installation (so we don't install an update + # to fXX-backgrounds and put the 'real' image back when we reboot) + assert_script_run 'printf "[org.gnome.software]\ndownload-updates=false\n" > /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override'; assert_script_run 'glib-compile-schemas /usr/share/glib-2.0/schemas'; # In Gnome, we can create a passwordless user that can provide his password upon # the first login. So we can create the second user in this way to test this feature