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

post_fail_hook: upload PostgreSQL init log if it exists

Why...why...WHY is this not in /var/log. Sheesh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-08-25 16:18:32 -07:00
parent 09cd628f46
commit 527cb63152

View File

@ -110,6 +110,11 @@ sub post_fail_hook {
upload_logs "/var/named/data/named.run";
}
# update PostgreSQL initialization log (for database_server test)
unless (script_run 'test -f /var/lib/pgsql/initdb_postgresql.log') {
upload_logs "/var/lib/pgsql/initdb_postgresql.log";
}
# Upload /var/log
# lastlog can mess up tar sometimes and it's not much use
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {