1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-12 18:44:31 +00:00
os-autoinst-distri-fedora/tests/applications/bugreporter/aaa_setup.pm
2022-09-19 16:11:42 +02:00

44 lines
1.2 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This script prepares the environment for the bug reporter (Abrt) test.
sub run {
my $self = shift;
# Go to the root console to perform settings.
$self->root_console(tty => 3);
# Install will-crash -> we will use this to generate some Abrt problems.
assert_script_run("dnf install -y will-crash", timeout => 120);
# Return to Desktop
desktop_vt();
# Open Terminal and use will-crash to generate a simulated crash.
menu_launch_type("terminal");
# Check that the application has started.
assert_screen("apps_run_terminal");
# Type the command.
enter_cmd("will_segfault");
# Wait one minute if a notification is displayed, otherwise softfail.
unless (check_screen("bugreporter_notification_displayed", timeout => '60')) {
record_soft_failure("The crash notification has not been shown in one minute time frame.");
}
# Exit the terminal.
enter_cmd("exit");
wait_still_screen(2);
# Start Abrt for further testing.
menu_launch_type("abrt");
assert_screen("apps_run_abrt");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: