1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-24 03:03:08 +00:00

upload Anaconda ABRT directory

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D310
This commit is contained in:
Garret Raziel 2015-04-03 13:42:59 +02:00
parent 3146a72d99
commit 469d8d2e92
5 changed files with 55 additions and 3 deletions

View File

@ -5,6 +5,13 @@ use testapi;
sub post_fail_hook {
my $self = shift;
my $has_traceback = 0;
if (check_screen "anaconda_error", 10) {
assert_and_click "anaconda_report_btn"; # Generage Anaconda ABRT logs
$has_traceback = 1;
}
send_key "ctrl-alt-f2";
my $logged_in = 0;
if (get_var("LIVE") && check_screen "text_console_login", 20) {
@ -29,9 +36,11 @@ sub post_fail_hook {
upload_logs "/tmp/dnf.log";
# Upload all ABRT logs
type_string "cd /var/tmp/abrt && tar czvf abrt.tar.gz *";
send_key "ret";
upload_logs "/var/tmp/abrt/abrt.tar.gz";
if ($has_traceback) {
type_string "cd /var/tmp && tar czvf var_tmp.tar.gz *";
send_key "ret";
upload_logs "/var/tmp/var_tmp.tar.gz";
}
# Upload Anaconda logs
type_string "tar czvf /tmp/anaconda_tb.tar.gz /tmp/anaconda-tb-*";

View File

@ -0,0 +1,25 @@
{
"area": [
{
"xpos": 275,
"ypos": 319,
"width": 217,
"height": 19,
"type": "match"
},
{
"xpos": 577,
"ypos": 430,
"width": 89,
"height": 20,
"type": "match"
}
],
"tags": [
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server",
"ENV-INSTLANG-en_US",
"anaconda_error"
],
"properties": []
}

BIN
needles/anaconda_error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -0,0 +1,18 @@
{
"area": [
{
"xpos": 577,
"ypos": 430,
"width": 89,
"height": 20,
"type": "match"
}
],
"tags": [
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server",
"ENV-INSTLANG-en_US",
"anaconda_report_btn"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB