From 4f014d4f11af28d8163481d5604abcee062cddd7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 29 Mar 2017 14:33:25 -0700 Subject: [PATCH] Use tty2 not tty3 for freeipa_client login tests There's an issue where the follow-on _advisory_post test tries to log in before the 'login failed' error has cleared. We can easily avoid this by using tty2 for the login tests, then _advisory_post will switch to tty3 for its stuff. --- tests/freeipa_client.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/freeipa_client.pm b/tests/freeipa_client.pm index 0627eddd..49ccc5a2 100644 --- a/tests/freeipa_client.pm +++ b/tests/freeipa_client.pm @@ -20,8 +20,8 @@ sub run { validate_script_output 'klist -k', sub { $_ =~ m/$qhost\@DOMAIN\.LOCAL/ }; # check we can kinit with the host principal assert_script_run "kinit -k host/$hostname\@DOMAIN.LOCAL"; - # switch to tty3 - send_key "ctrl-alt-f3"; + # switch to tty2 for login tests + send_key "ctrl-alt-f2"; # try and login as test1, should work console_login(user=>'test1@DOMAIN.LOCAL', password=>'batterystaple'); type_string "exit\n";