1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-10-02 10:48:48 +00:00
os-autoinst-distri-fedora/tests/unwanted_packages.pm
Adam Williamson 557c2cd781 Run unwanted_packages on KDE, they don't want gtk2 (#425)
This enables the unwanted_packages test we set up for Workstation
a while ago on KDE as well. They want to ensure gtk2 isn't on
KDE installs.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-05 14:52:28 -07:00

31 lines
552 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
# switch to TTY3 for both, graphical and console tests
$self->root_console(tty => 3);
my @unwanteds;
my $subv = get_var("SUBVARIANT");
if ($subv eq "Workstation") {
@unwanteds = ("gtk2", "qt");
}
elsif ($subv eq "KDE") {
@unwanteds = ("gtk2");
}
for my $unwanted (@unwanteds) {
assert_script_run "! rpm -q $unwanted";
}
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: