Simplify anaconda error screen handling, add new needle

There's really no point having separate error and error_report
needles. Just match on error_report as well as clicking on it.
Also add a new error_report needle for latest Rawhide fonts.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-12-12 22:04:51 -08:00
parent 0639468de6
commit 65b4755358
9 changed files with 18 additions and 50 deletions

View File

@ -15,7 +15,7 @@ sub post_fail_hook {
# if error dialog is shown, click "report" - it then creates directory structure for ABRT
my $has_traceback = 0;
if (check_screen "anaconda_error", 10) {
if (check_screen "anaconda_error_report", 10) {
assert_and_click "anaconda_error_report";
$has_traceback = 1;
} elsif (check_screen "anaconda_text_error", 10) { # also for text install

View File

@ -1,16 +0,0 @@
{
"area": [
{
"height": 16,
"width": 213,
"type": "match",
"ypos": 322,
"xpos": 276
}
],
"properties": [],
"tags": [
"ENV-DISTRI-fedora",
"anaconda_error"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

View File

@ -1,17 +0,0 @@
{
"area": [
{
"height": 19,
"type": "match",
"width": 262,
"xpos": 275,
"ypos": 324
}
],
"properties": [],
"tags": [
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server",
"anaconda_error"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,16 +0,0 @@
{
"tags": [
"ENV-DISTRI-fedora",
"anaconda_error"
],
"properties": [],
"area": [
{
"height": 16,
"ypos": 320,
"xpos": 276,
"width": 198,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

View File

@ -0,0 +1,17 @@
{
"tags": [
"ENV-DISTRI-fedora",
"anaconda_error",
"anaconda_error_report"
],
"area": [
{
"type": "match",
"xpos": 578,
"height": 16,
"width": 74,
"ypos": 433
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB