From f1913e83059e6be6b004a5ab4cd379eaf8abca64 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 9 Mar 2018 18:32:32 -0800 Subject: [PATCH] Change g-i-s 'nexts' count for F28+ Several screens are now skipped in g-i-s pre-login mode, we have to adjust the number we expect. Signed-off-by: Adam Williamson --- lib/utils.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index 3b52b409..f17b0762 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -428,7 +428,15 @@ sub gnome_initial_setup { ); my $nexts = 3; if ($args{prelogin}) { - $nexts = 5; + my $version = lc(get_var("VERSION")); + if ($version eq 'rawhide' || $version > 27) { + # several screens are suppressed in pre-login g-i-s: + # https://fedoraproject.org/wiki/Changes/ReduceInitialSetupRedundancy + $nexts = 2; + } + else { + $nexts = 5; + } } assert_screen "next_button", $args{timeout}; # wait a bit in case of animation