From d2d6bfa695d05878f00ee841c78044531d03b45b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 Sep 2018 18:09:58 -0700 Subject: [PATCH] Try something different for screen corruption after IPA uninstall There's this annoying problem where the screen sometimes goes messed up after ipa-server-uninstall. 'clear' doesn't seem to really work to fix it up either. Let's try flipping between ttys. I don't like this much as it's already a pain trying to work out / remember what tty we might possibly be on at any given time, but I think we're always on either 1 or 3 here, so let's do ctrl-alt-f1 ctrl-alt-f3 to ensure at least one change and wind up on tty3... Signed-off-by: Adam Williamson --- tests/role_deploy_domain_controller_check.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/role_deploy_domain_controller_check.pm b/tests/role_deploy_domain_controller_check.pm index f4991c20..16a14476 100644 --- a/tests/role_deploy_domain_controller_check.pm +++ b/tests/role_deploy_domain_controller_check.pm @@ -47,8 +47,10 @@ sub run { assert_script_run '! systemctl is-active ipa.service'; # decommission the server assert_script_run 'ipa-server-install -U --uninstall', 300; - # try and un-garble the screen that the above garbles... - assert_script_run 'clear'; + # try and un-garble the screen that the above sometimes garbles + # ...we may be on tty1 or tty3 now, so flip between them + send_key "ctrl-alt-f1"; + send_key "ctrl-alt-f3"; # FIXME check server is decommissioned...how? } }