Commit 7557ca06 authored by Harald Sitter's avatar Harald Sitter

reduce wait on switching to x11

wait_still_screen is internally nothing but a sleep (a longish one), we
don't really need a long wait for the VT switch. 2 seconds should be
plenty. if not the run probably should have its timing scale increased
anyway (i.e. make everything have more leeway because the server is
slow or whatever)
parent 56aa5510
......@@ -168,9 +168,10 @@ sub console_selected {
# FIXME: should make sure the session is unlocked
if ($console eq 'x11') {
# Do not wait on X11 specifically. Desktop state is wildely divergent.
# Instead wait screen. Which is a bit shit. But meh.
# We could maybe needle the panel specifically?
wait_still_screen;
# Instead wait a static amount. This is a bit shit. But meh.
# We could maybe needle the panel specifically? But then sddm has no
# panel. I am really not sure how to best handle this.
sleep 2;
return;
}
assert_screen($console, no_wait => 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment