Extend gnome-software/issues/582 workaround to 2 auth requests

It seems that when this problem happens now we get *two* auth
requests, so we need to handle that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-04-17 10:32:04 -07:00
parent d0d99946ce
commit ccb67bd5a7

View File

@ -31,6 +31,12 @@ sub run {
record_soft_failure "spurious 'auth required' - https://gitlab.gnome.org/GNOME/gnome-software/issues/582"; record_soft_failure "spurious 'auth required' - https://gitlab.gnome.org/GNOME/gnome-software/issues/582";
# bit sloppy but correct for both... # bit sloppy but correct for both...
type_very_safely "weakpassword\n"; type_very_safely "weakpassword\n";
# as of 2019-04 when we hit this bug it seems to ask for
# auth *twice*, so handle that
sleep 3;
if (check_screen "auth_required", 1) {
type_very_safely "weakpassword\n";
}
} }
# this launches GNOME Software on GNOME, dunno for any other # this launches GNOME Software on GNOME, dunno for any other
# desktop yet # desktop yet