use tty3 instead of tty1

This commit is contained in:
Trevor Cooper 2023-08-23 20:54:27 -07:00
parent 0c6dc22856
commit 11fee91082
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -5,13 +5,13 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
# switch to tty1 (we're usually there already, but just in case
# we're carrying on from a failed freeipa_webui that didn't fail
# at tty1)
my $ipa_domain = 'test.openqa.rockylinux.org'; my $ipa_domain = 'test.openqa.rockylinux.org';
my $ipa_realm = 'TEST.OPENQA.ROCKYLINUX.ORG'; my $ipa_realm = 'TEST.OPENQA.ROCKYLINUX.ORG';
send_key "ctrl-alt-f1";
# Rocky SUT is graphical so stay on/force tty3 do NOT switch to tty1
$self->root_console(tty => 3);
wait_still_screen 1; wait_still_screen 1;
# check domain is listed in 'realm list' # check domain is listed in 'realm list'
validate_script_output 'realm list', sub { $_ =~ m/domain-name: test\.openqa\.rockylinux\.org.*configured: kerberos-member/s }; validate_script_output 'realm list', sub { $_ =~ m/domain-name: test\.openqa\.rockylinux\.org.*configured: kerberos-member/s };
# check we can see the admin user in getent # check we can see the admin user in getent