mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-29 09:03:08 +00:00
47 lines
1.2 KiB
Perl
47 lines
1.2 KiB
Perl
|
use base "installedtest";
|
||
|
use strict;
|
||
|
use testapi;
|
||
|
use utils;
|
||
|
use desktoptools;
|
||
|
|
||
|
# This script tests if Software can remove a previously installed RPM applications.
|
||
|
|
||
|
sub run {
|
||
|
my $self = shift;
|
||
|
|
||
|
unless (get_var("SUBVARIANT") eq "Silverblue") {
|
||
|
# Test prerequisites.
|
||
|
$self->root_console(tty => 3);
|
||
|
script_run("dnf install -y gnome-mahjongg", timeout => 240);
|
||
|
script_run("pkcon refresh force", timeout => 240);
|
||
|
desktop_vt();
|
||
|
|
||
|
# Sometimes, the Software might crash here. If that happens,
|
||
|
# let's restart it.
|
||
|
#
|
||
|
unless (check_screen("apps_run_software")) {
|
||
|
restart_application("software");
|
||
|
}
|
||
|
|
||
|
# Remove the application
|
||
|
remove_application("mahjongg");
|
||
|
|
||
|
# Check in the CLI that the application has been correctly removed.
|
||
|
$self->root_console(tty => 3);
|
||
|
assert_script_run("! rpm -q gnome-mahjongg");
|
||
|
}
|
||
|
else {
|
||
|
record_info("Silverblue override", "This test has been skipped because the functionality is not available on Silverblue.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
sub test_flags {
|
||
|
# When finish, rollback to milestone.
|
||
|
return {always_rollback => 1};
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
# vim: set sw=4 et:
|
||
|
|