mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-18 11:11:26 +00:00
97d4c8b85c
The font Firefox uses when we don't ensure dejavu is installed seems to bounce around a bit, so let's ensure the dejavu fonts are there before we start Firefox. Also update a needle for this.
33 lines
1.0 KiB
Perl
33 lines
1.0 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# check cockpit appears to be enabled and running and firewall is setup
|
|
assert_script_run 'systemctl is-enabled cockpit.socket';
|
|
assert_script_run 'systemctl is-active cockpit.socket';
|
|
assert_script_run 'firewall-cmd --query-service cockpit';
|
|
# use compose repo, disable u-t, etc.
|
|
repo_setup();
|
|
# install a desktop and firefox so we can actually try it
|
|
assert_script_run 'dnf -y groupinstall "base-x"', 300;
|
|
# FIXME: this should probably be in base-x...X seems to fail without
|
|
assert_script_run 'dnf -y install libglvnd-egl', 120;
|
|
# try to avoid random weird font selection happening
|
|
assert_script_run 'dnf -y install dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts', 120;
|
|
assert_script_run 'dnf -y install firefox', 120;
|
|
start_cockpit(0);
|
|
# quit firefox (return to console)
|
|
send_key "ctrl-q";
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|