mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 15:23:08 +00:00
Use lower similarity_level for some terminal wait_still_screens
We can't use the default similarity_level for wait_still_screen when there's a flashing cursor - flashing cursor will always cause the similarity level to be too low and the wait will just time out at 30 seconds. Cut it to 42. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
abd1d1a698
commit
8fab101745
@ -1443,14 +1443,14 @@ sub solidify_wallpaper {
|
||||
# Start the terminal to set up backgrounds.
|
||||
menu_launch_type "gnome-terminal";
|
||||
# wait to be sure it's fully open
|
||||
wait_still_screen 5;
|
||||
wait_still_screen(stilltime=>5, similarity_level=>42);
|
||||
# When the application opens, run command in it to set the background to black
|
||||
type_very_safely "gsettings set org.gnome.desktop.background picture-uri ''";
|
||||
send_key 'ret';
|
||||
wait_still_screen 2;
|
||||
wait_still_screen(stilltime=>2, similarity_level=>42);
|
||||
type_very_safely "gsettings set org.gnome.desktop.background primary-color '#000000'";
|
||||
send_key 'ret';
|
||||
wait_still_screen 2;
|
||||
wait_still_screen(stilltime=>2, similarity_level=>42);
|
||||
quit_with_shortcut();
|
||||
# check that is has changed color
|
||||
assert_screen 'apps_settings_screen_black';
|
||||
|
@ -9,15 +9,15 @@ sub run {
|
||||
check_desktop;
|
||||
menu_launch_type('terminal');
|
||||
assert_screen "apps_run_terminal";
|
||||
wait_still_screen 5;
|
||||
wait_still_screen(stilltime=>5, similarity_level=>42);
|
||||
# need to be root
|
||||
my $rootpass = get_var("ROOT_PASSWORD", "weakpassword");
|
||||
type_string "su\n", 20;
|
||||
wait_still_screen 3;
|
||||
wait_still_screen(stilltime=>3, similarity_level=>42);
|
||||
# can't use type_safely for now as current implementation relies
|
||||
# on screen change checks, and there is no screen change here
|
||||
type_string "$rootpass\n", 1;
|
||||
wait_still_screen 3;
|
||||
wait_still_screen(stilltime=>3, similarity_level=>42);
|
||||
# if we can run something successfully, we're at a console;
|
||||
# we're reinventing assert_script_run instead of using it so
|
||||
# we can type safely
|
||||
|
Loading…
Reference in New Issue
Block a user