Replace remaining wait_idles with sleeps

wait_idle is finally removed upstream in recent git os-autoinst.
This replaces all remaining wait_idles with sleeps, except for
one which is removed (I'm hoping improvements to typing in the
last few years should mean it isn't necessary any more, if it
turns out to be, I'll put it back as a sleep).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-01-02 17:44:45 -08:00
parent f94d43f55d
commit 34dc2751a5
3 changed files with 2 additions and 5 deletions

View File

@ -38,7 +38,7 @@ sub x11_start_program {
send_key "alt-f2";
assert_screen "desktop_runner";
type_string $program, 20;
wait_idle 5; # because of KDE dialog - SUSE guys are doing the same!
sleep 5; # because of KDE dialog - SUSE guys are doing the same!
send_key "ret", 1;
}

View File

@ -14,9 +14,6 @@ sub prepare_test_packages {
# remove python3-kickstart if installed (we don't use assert
# here in case it's not)
script_run 'dnf -y remove python3-kickstart', 180;
# we seem to often lose keystrokes in the next command if we run
# it too fast, let's wait for idle first
wait_idle 20;
# grab the test repo definitions
assert_script_run 'curl -o /etc/yum.repos.d/openqa-testrepo-1.repo https://fedorapeople.org/groups/qa/openqa-repos/openqa-testrepo-1.repo';
# install the test packages from repo1

View File

@ -15,7 +15,7 @@ sub run {
assert_and_click "anaconda_spoke_done";
# type password for disk encryption
wait_idle 5;
sleep 5;
if (get_var("SWITCHED_LAYOUT")) {
desktop_switch_layout "ascii", "anaconda";
}