From f5207d75f286bdf8e8cb1e9064b84b088ace32fa Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 14 Dec 2015 08:29:19 -0800 Subject: [PATCH] anaconda.core dumps have PID suffix, so correct for that Summary: Apparently it'll be something like anaconda.core.(PID). This should result in that getting compressed and uploaded only if it exists. Test Plan: Try and hit the Mystery Crasher and see if we get the damn core file this time. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D688 --- lib/anacondatest.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/anacondatest.pm b/lib/anacondatest.pm index 7f923497..ce760dba 100644 --- a/lib/anacondatest.pm +++ b/lib/anacondatest.pm @@ -44,7 +44,8 @@ sub post_fail_hook { upload_logs "/tmp/var_log.tar.gz"; # Upload anaconda core dump, if there is one - upload_logs "/tmp/anaconda.core"; + script_run "ls /tmp/anaconda.core.* && tar czf /tmp/anaconda.core.tar.gz /tmp/anaconda.core.*"; + upload_logs "/tmp/anaconda.core.tar.gz"; } else { save_screenshot;