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
This commit is contained in:
Adam Williamson 2015-12-14 08:29:19 -08:00
parent 659367c31b
commit f5207d75f2

View File

@ -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;