mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 14:41:27 +00:00
Use better pattern for checking if there are coredumps
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
cdf33cc2ae
commit
23192baa5d
@ -50,8 +50,8 @@ sub post_fail_hook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# upload any core dump files caught by coredumpctl
|
# upload any core dump files caught by coredumpctl
|
||||||
unless (script_run "tar czvf /var/tmp/coredumps.tar.gz /var/lib/systemd/coredump/") {
|
unless (script_run 'test -n "$(ls -A /var/lib/systemd/coredump)" && cd /var/lib/systemd/coredump && tar czvf coredump.tar.gz *') {
|
||||||
upload_logs "/var/tmp/coredumps.tar.gz";
|
upload_logs "/var/lib/systemd/coredump/coredump.tar.gz";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Upload /var/log
|
# Upload /var/log
|
||||||
|
Loading…
Reference in New Issue
Block a user