Skip to content

Commit

Permalink
Enhance code to avoid time racing on yast2_users
Browse files Browse the repository at this point in the history
Sometime the following actions can not be executed properly so add
some time buffer code.
  • Loading branch information
lilyeyes committed Oct 16, 2020
1 parent fa350af commit 59130ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/security/yast2_users/add_users.pm
Expand Up @@ -87,6 +87,10 @@ sub run {
assert_screen("Yast2-Users-Add-User-Created");
wait_screen_change { send_key "alt-o" };

# Enhence code for stability: avoid time racing
clear_console;
assert_screen("root-console-x11");

# Exit x11 and turn to console
send_key "alt-f4";
assert_screen("generic-desktop");
Expand Down

0 comments on commit 59130ff

Please sign in to comment.