1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-29 00:53:09 +00:00

Simplify the KDE abrt logic

This does the same, just cleaner.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-12-07 11:26:27 -08:00
parent 179764d49c
commit 9c6d5459e6
2 changed files with 4 additions and 14 deletions

View File

@ -1,6 +1,7 @@
{ {
"properties": [], "properties": [],
"tags": [ "tags": [
"abrt_runs",
"abrt_runs_found_problem" "abrt_runs_found_problem"
], ],
"area": [ "area": [

View File

@ -9,19 +9,8 @@ sub run {
my $self = shift; my $self = shift;
# Start the application # Start the application
menu_launch_type('abrt'); menu_launch_type('abrt');
# Check that the application has started. assert_screen 'abrt_runs';
# On KDE, the test failed when Abrt started record_soft_failure("Abrt has reported issues") if (match_has_tag 'abrt_runs_found_problem');
# and there was an error caught.
# Now, if we do not find the needle that
# checks Abrt has started, we will also
# check for a reported issue - if we find that
# we can assume that Abrt has started indeed.
unless (check_screen('abrt_runs', timeout => 30)) {
# The above check needs some timeout because
# it might take some time before Abrt starts.
assert_screen('abrt_runs_found_problem');
record_soft_failure("Abrt has reported issues.");
}
# Close the application # Close the application
quit_with_shortcut(); quit_with_shortcut();
} }