mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-22 02:13:08 +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:
parent
179764d49c
commit
9c6d5459e6
@ -1,6 +1,7 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"abrt_runs",
|
||||
"abrt_runs_found_problem"
|
||||
],
|
||||
"area": [
|
||||
@ -12,4 +13,4 @@
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -9,19 +9,8 @@ sub run {
|
||||
my $self = shift;
|
||||
# Start the application
|
||||
menu_launch_type('abrt');
|
||||
# Check that the application has started.
|
||||
# On KDE, the test failed when Abrt started
|
||||
# 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.");
|
||||
}
|
||||
assert_screen 'abrt_runs';
|
||||
record_soft_failure("Abrt has reported issues") if (match_has_tag 'abrt_runs_found_problem');
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user