upload Anaconda ABRT directory
Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D310
This commit is contained in:
parent
3146a72d99
commit
469d8d2e92
@ -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 *";
|
||||
if ($has_traceback) {
|
||||
type_string "cd /var/tmp && tar czvf var_tmp.tar.gz *";
|
||||
send_key "ret";
|
||||
upload_logs "/var/tmp/abrt/abrt.tar.gz";
|
||||
upload_logs "/var/tmp/var_tmp.tar.gz";
|
||||
}
|
||||
|
||||
# Upload Anaconda logs
|
||||
type_string "tar czvf /tmp/anaconda_tb.tar.gz /tmp/anaconda-tb-*";
|
||||
|
25
needles/anaconda_error.json
Normal file
25
needles/anaconda_error.json
Normal 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
BIN
needles/anaconda_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
18
needles/anaconda_report_btn.json
Normal file
18
needles/anaconda_report_btn.json
Normal 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": []
|
||||
}
|
BIN
needles/anaconda_report_btn.png
Normal file
BIN
needles/anaconda_report_btn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
Loading…
Reference in New Issue
Block a user