mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 13:11:26 +00:00
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:
parent
f94d43f55d
commit
34dc2751a5
@ -38,7 +38,7 @@ sub x11_start_program {
|
|||||||
send_key "alt-f2";
|
send_key "alt-f2";
|
||||||
assert_screen "desktop_runner";
|
assert_screen "desktop_runner";
|
||||||
type_string $program, 20;
|
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;
|
send_key "ret", 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,9 +14,6 @@ sub prepare_test_packages {
|
|||||||
# remove python3-kickstart if installed (we don't use assert
|
# remove python3-kickstart if installed (we don't use assert
|
||||||
# here in case it's not)
|
# here in case it's not)
|
||||||
script_run 'dnf -y remove python3-kickstart', 180;
|
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
|
# 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';
|
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
|
# install the test packages from repo1
|
||||||
|
@ -15,7 +15,7 @@ sub run {
|
|||||||
assert_and_click "anaconda_spoke_done";
|
assert_and_click "anaconda_spoke_done";
|
||||||
|
|
||||||
# type password for disk encryption
|
# type password for disk encryption
|
||||||
wait_idle 5;
|
sleep 5;
|
||||||
if (get_var("SWITCHED_LAYOUT")) {
|
if (get_var("SWITCHED_LAYOUT")) {
|
||||||
desktop_switch_layout "ascii", "anaconda";
|
desktop_switch_layout "ascii", "anaconda";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user