mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 14:53:09 +00:00
8cca936926
OK, looked into it some more and ultimately we had problems here because of https://bugzilla.redhat.com/show_bug.cgi?id=1908791 in fact. The password prompt was taking far longer than usual to appear because pam_fprintd was failing because of that bug. That should be fixed with next Firefox build, so I think it's best to just leave this as it was, because in the usual course of events it works fine and it saves having another needle to maintain. Signed-off-by: Adam Williamson <awilliam@redhat.com>
34 lines
903 B
Perl
34 lines
903 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self=shift;
|
|
check_desktop;
|
|
menu_launch_type('terminal');
|
|
assert_screen "apps_run_terminal";
|
|
wait_still_screen 5;
|
|
# need to be root
|
|
my $rootpass = get_var("ROOT_PASSWORD", "weakpassword");
|
|
type_string "su\n", 20;
|
|
wait_still_screen 3;
|
|
# can't use type_safely for now as current implementation relies
|
|
# on screen change checks, and there is no screen change here
|
|
type_string "$rootpass\n", 1;
|
|
wait_still_screen 3;
|
|
# if we can run something successfully, we're at a console;
|
|
# we're reinventing assert_script_run instead of using it so
|
|
# we can type safely
|
|
type_very_safely "ls && echo 'ls OK' > /dev/${serialdev}\n";
|
|
die "terminal command failed" unless defined wait_serial "ls OK";
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|