mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 07:13: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:
parent
179764d49c
commit
9c6d5459e6
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"properties": [],
|
"properties": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"abrt_runs",
|
||||||
"abrt_runs_found_problem"
|
"abrt_runs_found_problem"
|
||||||
],
|
],
|
||||||
"area": [
|
"area": [
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user