-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multi-user.target isolation in multi_user_dm #4838
Conversation
@@ -21,6 +21,9 @@ use utils; | |||
|
|||
sub ensure_multi_user_target { | |||
type_string "systemctl isolate multi-user.target\n"; | |||
wait_still_screen 5; | |||
send_key "ctrl-alt-f" . get_root_console_tty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's at least wrap it in wait_screen_change, because we can send alt-c too early.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait_screen_change
doesn't seem to be triggered in this case:
http://artemis.suse.de/tests/166
+ wait_screen_change {
+ type_string "systemctl isolate multi-user.target\n";
+ send_key "ctrl-alt-f" . get_root_console_tty;
+ }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually meant wrapping send_key. In case we type text it doesn't make sense as screen changes after first symbol. Could you please try with just send_key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the commit and tested: http://artemis.suse.de/tests/167
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, now we get exact glitches I got while working on this issue. I also tried to restart X by restarting services, it didn't help. So I guess we should consider rebooting in the test as there is no progress on the bug...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry for this confusion, but I meant send key on L#25 mainly, so we switch to tty before sending ctrl-c. But wrapped ctrl-c also doesn't hurt.
Let's see where this brings us :-) |
This doesn't fix the whole multi_user_dm test.
In a previous run with this patch it looked like as if just
some needles were missing but currently there seems to be
some issue with the graphics driver: http://artemis.suse.de/tests/165#step/multi_users_dm/15
I still would like to have this already merged as it will help to track that issue.